MFC: MDL-11996 fixed previous speedup commit for user operations in admin tree

This commit is contained in:
skodak
2007-11-01 19:44:32 +00:00
parent 81c9dd751a
commit 7b5f66308c
+5 -1
View File
@@ -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"));