require_login is in 'question_edit_setup' we don't need to call it again here.

This commit is contained in:
jamiesensei 2007-05-07 05:12:09 +00:00
parent db76f84627
commit a4758a8632
2 changed files with 0 additions and 2 deletions

View File

@ -44,7 +44,6 @@
$context = get_context_instance(CONTEXT_COURSE, $courseid); $context = get_context_instance(CONTEXT_COURSE, $courseid);
require_login($course->id, false);
require_capability('moodle/question:managecategory', $context); require_capability('moodle/question:managecategory', $context);
$qcobject = new question_category_object($param->page, $thispageurl); $qcobject = new question_category_object($param->page, $thispageurl);

View File

@ -48,7 +48,6 @@
print_error('nocategory','quiz'); print_error('nocategory','quiz');
} }
require_login($course->id, false);
// check role capability // check role capability
$context = get_context_instance(CONTEXT_COURSE, $course->id); $context = get_context_instance(CONTEXT_COURSE, $course->id);