]> git.mjollnir.org Git - moodle.git/commitdiff
do not show pending courses button for nonadmins bug #5564; merged from MOODLE_16_STABLE
authorskodak <skodak>
Sat, 20 May 2006 18:08:25 +0000 (18:08 +0000)
committerskodak <skodak>
Sat, 20 May 2006 18:08:25 +0000 (18:08 +0000)
course/index.php

index c2e3a011e136e4f67452aa6f1e580cd0e5e48876..ffcf9bbc5c771dedb7d69c16d1fca9ea3538e861 100644 (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>";