From: jamiesensei Date: Mon, 7 May 2007 05:12:09 +0000 (+0000) Subject: require_login is in 'question_edit_setup' we don't need to call it again here. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a4758a8632b7a5480f34bfaf1d738949128a5053;p=moodle.git require_login is in 'question_edit_setup' we don't need to call it again here. --- diff --git a/question/category.php b/question/category.php index b2a45b80fe..8f3c79102a 100644 --- a/question/category.php +++ b/question/category.php @@ -44,7 +44,6 @@ $context = get_context_instance(CONTEXT_COURSE, $courseid); - require_login($course->id, false); require_capability('moodle/question:managecategory', $context); $qcobject = new question_category_object($param->page, $thispageurl); diff --git a/question/export.php b/question/export.php index c792ddbf2e..277c1cc67a 100644 --- a/question/export.php +++ b/question/export.php @@ -48,7 +48,6 @@ print_error('nocategory','quiz'); } - require_login($course->id, false); // check role capability $context = get_context_instance(CONTEXT_COURSE, $course->id);