MDL-28574 webservices: Explain tokens you can edit but can't see

This commit is contained in:
John Okely
2017-07-31 15:35:23 +08:00
parent 11df55c0dd
commit 72e688d7ff
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -9531,6 +9531,10 @@ class admin_setting_managewebservicetokens extends admin_setting {
$return = $OUTPUT->box_start('generalbox webservicestokenui');
if (has_capability('moodle/webservice:managealltokens', context_system::instance())) {
$return .= \html_writer::div(get_string('onlyseecreatedtokens', 'webservice'));
}
$table = new \webservice\token_table('webservicetokens');
$table->define_baseurl($baseurl);
$table->attributes['class'] = 'admintable generaltable'; // Any need changing?