web service MDL-17135 add moodle/site:usewebservice capability - display only web service users into administration page

This commit is contained in:
jerome
2009-02-16 08:06:14 +00:00
parent 5bed810261
commit d27c5d3383
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -4947,7 +4947,7 @@ class admin_setting_managewsusersettings extends admin_setting {
$table->data = array();
foreach ($users as $user) {
if ( true) { //test if the users has has_capability('use_webservice')
if (has_capability("moodle/site:usewebservice",get_system_context(), $user->id)) { //test if the users has has_capability('use_webservice')
$wsusersetting = ' <a href="' . $this->baseurl . '&amp;username=' . $user->username . '">'
. get_string("settings")
.'</a>' . "\n";