From a11c4d57d713c8fee07be2aebd3b9fa6c5c195f4 Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Fri, 12 Oct 2007 13:38:16 +0200 Subject: [PATCH] [svn r13476] fix a bug when using hotpotatoes as an admin --- main/exercice/adminhp.php | 4 ++-- main/exercice/exercice_submit.php | 4 ++-- main/exercice/question_pool.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/main/exercice/adminhp.php b/main/exercice/adminhp.php index 9dba066a5d..8248c78261 100644 --- a/main/exercice/adminhp.php +++ b/main/exercice/adminhp.php @@ -22,7 +22,7 @@ * HotPotatoes administration. * @package dokeos.exercise * @author Istvan Mandak -* @version $Id: adminhp.php 12828 2007-08-01 16:48:13Z yannoo $ +* @version $Id: adminhp.php 13476 2007-10-12 11:38:16Z elixir_inter $ */ @@ -61,7 +61,7 @@ define(FREE_ANSWER, 5); // allows script inclusions define(ALLOWED_TO_INCLUDE,1); -$is_allowedToEdit=$is_courseAdmin; +$is_allowedToEdit=api_is_allowed_to_edit(); // document path $documentPath=api_get_path(SYS_COURSE_PATH).$_course['path'].'/document'; diff --git a/main/exercice/exercice_submit.php b/main/exercice/exercice_submit.php index 9bdc22cb4e..1debbdf190 100644 --- a/main/exercice/exercice_submit.php +++ b/main/exercice/exercice_submit.php @@ -33,7 +33,7 @@ * the administrator * @package dokeos.exercise * @author Olivier Brouckaert -* @version $Id: exercice_submit.php 13177 2007-09-21 14:50:21Z elixir_inter $ +* @version $Id: exercice_submit.php 13476 2007-10-12 11:38:16Z elixir_inter $ */ @@ -63,7 +63,7 @@ $this_section=SECTION_COURSES; include_once(api_get_path(LIBRARY_PATH).'text.lib.php'); -$is_allowedToEdit=$is_courseAdmin; +$is_allowedToEdit=api_is_allowed_to_edit(); $TBL_EXERCICE_QUESTION = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION); $TBL_EXERCICES = Database::get_course_table(TABLE_QUIZ_TEST); diff --git a/main/exercice/question_pool.php b/main/exercice/question_pool.php index c0bcc78223..67c36f46c2 100644 --- a/main/exercice/question_pool.php +++ b/main/exercice/question_pool.php @@ -24,7 +24,7 @@ * One question can be in several exercises * @package dokeos.exercise * @author Olivier Brouckaert -* @version $Id: question_pool.php 13301 2007-09-27 03:47:39Z yannoo $ +* @version $Id: question_pool.php 13476 2007-10-12 11:38:16Z elixir_inter $ */ // name of the language file that needs to be included @@ -40,7 +40,7 @@ include('../inc/global.inc.php'); $this_section=SECTION_COURSES; -$is_allowedToEdit=$is_courseAdmin; +$is_allowedToEdit=api_is_allowed_to_edit(); $TBL_EXERCICE_QUESTION = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION); $TBL_EXERCICES = Database::get_course_table(TABLE_QUIZ_TEST);