mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
metacourses gui fixes, part I.
This commit is contained in:
parent
f98fe0efad
commit
f5002f10bf
@ -24,16 +24,13 @@
|
||||
}
|
||||
|
||||
require_login($course->id);
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
require_capability('moodle/course:managemetacourses', $context);
|
||||
|
||||
if (!$course->metacourse) {
|
||||
redirect("$CFG->wwwroot/course/student.php?id=$course->id");
|
||||
redirect("$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
}
|
||||
|
||||
if (!isadmin() && !isteacheredit($course->id)) {
|
||||
error("You must be an admin or a teacher of this course");
|
||||
}
|
||||
|
||||
|
||||
$strassigncourses = get_string('metaassigncourses');
|
||||
$stralreadycourses = get_string('metaalreadycourses');
|
||||
$strnoalreadycourses = get_string('metanoalreadycourses');
|
||||
|
Loading…
x
Reference in New Issue
Block a user