do not show pending courses button for nonadmins bug #5564; merged from MOODLE_16_STABLE
This commit is contained in:
+1
-1
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user