web service MDL-17135 add moodle/site:usewebservice capability - display only web service users into administration page
This commit is contained in:
+1
-1
@@ -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 . '&username=' . $user->username . '">'
|
||||
. get_string("settings")
|
||||
.'</a>' . "\n";
|
||||
|
||||
Reference in New Issue
Block a user