mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
require_login is in 'question_edit_setup' we don't need to call it again here.
This commit is contained in:
parent
db76f84627
commit
a4758a8632
@ -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);
|
||||
|
@ -48,7 +48,6 @@
|
||||
print_error('nocategory','quiz');
|
||||
}
|
||||
|
||||
require_login($course->id, false);
|
||||
|
||||
// check role capability
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user