mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Fixed typo
This commit is contained in:
parent
3f5edbdfa3
commit
5ddc81b973
@ -23,7 +23,7 @@
|
||||
|
||||
//Check admin
|
||||
if (!empty($id)) {
|
||||
if (!has_capability('moodle/site:restore', get_context_instance(CONTEXT_COUESE, $id))) {
|
||||
if (!has_capability('moodle/site:restore', get_context_instance(CONTEXT_COURSE, $id))) {
|
||||
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user