From: Florent Bruneau Date: Sun, 24 Oct 2010 13:57:42 +0000 (+0200) Subject: Always allow the creator of the survey to view the results (Closes #1282) X-Git-Tag: xorg/1.0.1~19 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ad9285e2f0ef7fe27e3801b603061ba33eedeb2b;p=platal.git Always allow the creator of the survey to view the results (Closes #1282) Signed-off-by: Florent Bruneau --- diff --git a/modules/survey.php b/modules/survey.php index 8ce9d73..fa2b5bc 100644 --- a/modules/survey.php +++ b/modules/survey.php @@ -109,7 +109,7 @@ class SurveyModule extends PLModule } elseif (!$survey->isEnded() && !$survey->canSeeEarlyResults(S::user())) { return $this->show_error($page, "Le sondage ".$survey->getTitle()." n'est pas encore terminé.", 'survey'); } - if (!$this->check_surveyPerms($page, $survey)) { + if (!$survey->canSeeEarlyResults(S::user()) && !$this->check_surveyPerms($page, $survey)) { return PL_DO_AUTH; } if ($show == 'csv') {