Commit 17dd5bba authored by Paul Holden's avatar Paul Holden
Browse files

MDL-74202 webservice: fix protocol type in exception message.

parent 34ce1463
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment