MDL-74202 webservice: fix protocol type in exception message.
This commit is contained in:
+2
-1
@@ -1137,7 +1137,8 @@ abstract class webservice_server implements webservice_server_interface {
|
||||
$this->userid = $user->id;
|
||||
|
||||
if ($this->authmethod != WEBSERVICE_AUTHMETHOD_SESSION_TOKEN && !has_capability("webservice/$this->wsname:use", $this->restricted_context)) {
|
||||
throw new webservice_access_exception('You are not allowed to use the {$a} protocol (missing capability: webservice/' . $this->wsname . ':use)');
|
||||
throw new webservice_access_exception("You are not allowed to use the {$this->wsname} protocol " .
|
||||
"(missing capability: webservice/{$this->wsname}:use)");
|
||||
}
|
||||
|
||||
external_api::set_context_restriction($this->restricted_context);
|
||||
|
||||
Reference in New Issue
Block a user