|
MediaWiki master
|
A request authorizer which checks needsReadAccess() and needsWriteAccess() in the handler and calls isReadAllowed() and/or isWriteAllowed() in the subclass accordingly. More...
Inherited by MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer.

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. | |
| isWriteAllowed () | |
| Check if the current user is allowed to write to the wiki. | |
Protected Attributes | |
| Handler | $handler |
| RequestInterface | $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 ) |
Definition at line 20 of file BasicRequestAuthorizer.php.
References MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\$handler, and MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\$request.
| MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer::authorize | ( | ) |
Definition at line 30 of file BasicRequestAuthorizer.php.
|
abstractprotected |
Check if the current user is allowed to read from the wiki.
Reimplemented in MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer.
|
abstractprotected |
Check if the current user is allowed to write to the wiki.
Reimplemented in MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer.
|
protected |
Definition at line 18 of file BasicRequestAuthorizer.php.
Referenced by MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\__construct(), and MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer\__construct().
|
protected |
Definition at line 17 of file BasicRequestAuthorizer.php.
Referenced by MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\__construct(), and MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer\__construct().