mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
web service MDL-12886 fix capability name
This commit is contained in:
parent
3cac440b76
commit
386f206787
@ -4947,7 +4947,7 @@ class admin_setting_managewsusersettings extends admin_setting {
|
||||
$table->data = array();
|
||||
|
||||
foreach ($users as $user) {
|
||||
if (has_capability("moodle/site:usewebservice",get_system_context(), $user->id)) { //test if the users has has_capability('use_webservice')
|
||||
if (has_capability("moodle/site:usewebservices",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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user