MediaWiki
1.34.0
|
A request authorizer which checks needsReadAccess() and needsWriteAccess() in the handler and calls isReadAllowed() and/or isWriteAllowed() in the subclass accordingly. More...
Public Member Functions | |
__construct (RequestInterface $request, Handler $handler) | |
authorize () | |
Protected Member Functions | |
isReadAllowed () | |
Check if the current user is allowed to read from the wiki. More... | |
isWriteAllowed () | |
Check if the current user is allowed to write to the wiki. More... | |
Protected Attributes | |
$handler | |
$request | |
A request authorizer which checks needsReadAccess() and needsWriteAccess() in the handler and calls isReadAllowed() and/or isWriteAllowed() in the subclass accordingly.
Definition at line 15 of file BasicRequestAuthorizer.php.
MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer::__construct | ( | RequestInterface | $request, |
Handler | $handler | ||
) |
RequestInterface | $request | |
Handler | $handler |
Definition at line 23 of file BasicRequestAuthorizer.php.
References MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\$handler, and MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\$request.
MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer::authorize | ( | ) |
Definition at line 33 of file BasicRequestAuthorizer.php.
References MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\isReadAllowed(), and MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\isWriteAllowed().
|
abstractprotected |
Check if the current user is allowed to read from the wiki.
Reimplemented in MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer.
Referenced by MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\authorize().
|
abstractprotected |
Check if the current user is allowed to write to the wiki.
Reimplemented in MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer.
Referenced by MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\authorize().
|
protected |
Definition at line 17 of file BasicRequestAuthorizer.php.
Referenced by MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer\__construct(), and MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\__construct().
|
protected |
Definition at line 16 of file BasicRequestAuthorizer.php.
Referenced by MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer\__construct(), and MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\__construct().