From 82f0028119c5f25b0db64eea8a78dd269ac02ee5 Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 20 May 2006 18:08:25 +0000 Subject: [PATCH] do not show pending courses button for nonadmins bug #5564; merged from MOODLE_16_STABLE --- course/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/index.php b/course/index.php index c2e3a011e1..ffcf9bbc5c 100644 --- a/course/index.php +++ b/course/index.php @@ -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 ""; -- 2.39.5