From 41f8b7fff1287b56df21fc8358c04c41315ca859 Mon Sep 17 00:00:00 2001 From: oliver Date: Fri, 22 May 2015 11:40:59 +0200 Subject: [PATCH] always check permissions of previous Questgroup --- controllers/QuestgroupsController.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/controllers/QuestgroupsController.inc b/controllers/QuestgroupsController.inc index eee160f7..3ee7af06 100644 --- a/controllers/QuestgroupsController.inc +++ b/controllers/QuestgroupsController.inc @@ -91,7 +91,6 @@ { // Check permission of previous parent Questgroups $parentQuestgroup = $questgroup; - print_r($parentQuestgroup); while(!is_null($parentQuestgroup['hierarchy']['parent_questgroup_id'])) { $parentQuestgroup = $this->Questgroups->getQuestgroupById($parentQuestgroup['hierarchy']['parent_questgroup_id']); @@ -107,8 +106,7 @@ } // Check permission of previous Questgroup - // (only if Character has not entered Questgroup before) - if(!$this->Questgroups->hasCharacterEnteredQuestgroup($questgroup['id'], $character['id'])) + if($this->Questgroups->hasCharacterEnteredQuestgroup($questgroup['id'], $character['id'])) { $previousQuestgroup = $this->Questgroups->getPreviousQuestgroup($seminary['id'], $questgroup['id']); if(!is_null($previousQuestgroup)) {