Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4148369
MWBasicRequestAuthorizer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
724 B
Referenced Files
None
Subscribers
None
MWBasicRequestAuthorizer.php
View Options
<?php
namespace
MediaWiki\Rest\BasicAccess
;
use
MediaWiki\Permissions\Authority
;
use
MediaWiki\Rest\Handler
;
use
MediaWiki\Rest\RequestInterface
;
/**
* The concrete implementation of basic read/write restrictions in MediaWiki
*
* @internal
*/
class
MWBasicRequestAuthorizer
extends
BasicRequestAuthorizer
{
private
Authority
$authority
;
public
function
__construct
(
RequestInterface
$request
,
Handler
$handler
,
Authority
$authority
)
{
parent
::
__construct
(
$request
,
$handler
);
$this
->
authority
=
$authority
;
}
/** @inheritDoc */
protected
function
isReadAllowed
()
{
return
$this
->
authority
->
isAllowed
(
'read'
);
}
/** @inheritDoc */
protected
function
isWriteAllowed
()
{
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 18:45 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
eb/90/36f80a84a504492e4aab656ae673
Default Alt Text
MWBasicRequestAuthorizer.php (724 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment