From: skodak <skodak>
Date: Fri, 26 Jan 2007 16:19:34 +0000 (+0000)
Subject: MDL-8096 - added proper trimming of usernames; site:config capability is now neede... 
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e2cfb488bea73c6fcca7452e948a92195d87cdc7;p=moodle.git

MDL-8096 - added proper trimming of usernames; site:config capability is now neede to change definition of custom profile fields
---

diff --git a/admin/settings/users.php b/admin/settings/users.php
index f93997d3b0..e6e2424c70 100644
--- a/admin/settings/users.php
+++ b/admin/settings/users.php
@@ -11,7 +11,7 @@ $ADMIN->add('users', new admin_category('accounts', get_string('accounts', 'admi
 $ADMIN->add('accounts', new admin_externalpage('editusers', get_string('userlist','admin'), "$CFG->wwwroot/$CFG->admin/user.php", array('moodle/user:update', 'moodle/user:delete')));
 $ADMIN->add('accounts', new admin_externalpage('addnewuser', get_string('addnewuser'), "$CFG->wwwroot/user/editadvanced.php?id=-1", 'moodle/user:create'));
 $ADMIN->add('accounts', new admin_externalpage('uploadusers', get_string('uploadusers'), "$CFG->wwwroot/$CFG->admin/uploaduser.php", 'moodle/site:uploadusers'));
-$ADMIN->add('accounts', new admin_externalpage('profilefields', get_string('profilefields','admin'), "$CFG->wwwroot/user/profile/index.php", 'moodle/user:update'));
+$ADMIN->add('accounts', new admin_externalpage('profilefields', get_string('profilefields','admin'), "$CFG->wwwroot/user/profile/index.php", 'moodle/site:config'));
 
 
 // stuff under the "roles" subcategory