do not show pending courses button for nonadmins bug #5564; merged from MOODLE_16_STABLE

This commit is contained in:
skodak 2006-05-20 18:08:25 +00:00
parent a38a768b29
commit 82f0028119

View File

@ -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>";