mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
do not show pending courses button for nonadmins bug #5564; merged from MOODLE_16_STABLE
This commit is contained in:
parent
a38a768b29
commit
82f0028119
@ -59,7 +59,7 @@
|
||||
if (iscreator()) { // Print link to create a new course
|
||||
print_single_button("edit.php", NULL, get_string("addnewcourse"), "get");
|
||||
}
|
||||
if (!empty($CFG->enablecourserequests)) {
|
||||
if (isadmin() and !empty($CFG->enablecourserequests)) {
|
||||
print_single_button('pending.php',NULL, get_string('coursespending'),"get");
|
||||
}
|
||||
echo "</center>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user