mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Don't allow restricted users to do restores
This commit is contained in:
parent
9069e60346
commit
b7318874b9
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@
|
||||||
error("Course ID was incorrect (can't find it)");
|
error("Course ID was incorrect (can't find it)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||||
|
|
||||||
//Print header
|
//Print header
|
||||||
if (isadmin()) {
|
if (isadmin()) {
|
||||||
print_header("$site->shortname: $strcourserestore", $site->fullname,
|
print_header("$site->shortname: $strcourserestore", $site->fullname,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue