From: skodak Date: Thu, 1 Nov 2007 19:43:46 +0000 (+0000) Subject: MFC: MDL-11996 fixed previous speedup commit for user operations in admin tree X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fc4069d6da0e399aefd7b65f89beee89626d7ce1;p=moodle.git MFC: MDL-11996 fixed previous speedup commit for user operations in admin tree --- diff --git a/admin/settings/users.php b/admin/settings/users.php index b0fd5e9e54..5ad2d7daa5 100644 --- a/admin/settings/users.php +++ b/admin/settings/users.php @@ -2,7 +2,11 @@ // This file defines settingpages and externalpages under the "users" category -if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page +if ($hassiteconfig + or has_capability('moodle/site:uploadusers', $systemcontext) + or has_capability('moodle/user:create', $systemcontext) + or has_capability('moodle/user:update', $systemcontext) + or has_capability('moodle/user:delete', $systemcontext)) { // speedup for non-admins, add all caps used on this page $ADMIN->add('users', new admin_externalpage('userauthentication', get_string('authentication','admin'), "$CFG->wwwroot/$CFG->admin/auth.php"));