MediaWiki
master
|
A service class for checking permissions To obtain an instance, use MediaWikiServices::getInstance()->getPermissionManager(). More...
Public Member Functions | |
__construct (ServiceOptions $options, SpecialPageFactory $specialPageFactory, RevisionLookup $revisionLookup, NamespaceInfo $nsInfo, GroupPermissionsLookup $groupPermissionLookup, UserGroupManager $userGroupManager, BlockErrorFormatter $blockErrorFormatter, HookContainer $hookContainer, UserCache $userCache) | |
addTemporaryUserRights (UserIdentity $user, $rights) | |
Add temporary user rights, only valid for the current scope. More... | |
getAllPermissions () | |
Get a list of all available permissions. More... | |
getGroupPermissions ( $groups) | |
Get the permissions associated with a given list of groups. More... | |
getGroupsWithPermission ( $role) | |
Get all the groups who have a given permission. More... | |
getNamespaceRestrictionLevels ( $index, UserIdentity $user=null) | |
Determine which restriction levels it makes sense to use in a namespace, optionally filtered by a user's rights. More... | |
getPermissionErrors ( $action, User $user, LinkTarget $page, $rigor=self::RIGOR_SECURE, $ignoreErrors=[]) | |
Can $user perform $action on a page? More... | |
getUserPermissions (UserIdentity $user) | |
Get the permissions this user has. More... | |
groupHasPermission ( $group, $role) | |
Check, if the given group has the given permission. More... | |
invalidateUsersRightsCache ( $user=null) | |
Clears users permissions cache, if specific user is provided it tries to clear permissions cache only for provided user. More... | |
isBlockedFrom (User $user, LinkTarget $page, $fromReplica=false) | |
Check if user is blocked from editing a particular article. More... | |
isEveryoneAllowed ( $right) | |
Check if all users may be assumed to have the given permission. More... | |
overrideUserRightsForTesting ( $user, $rights=[]) | |
Overrides user permissions cache. More... | |
quickUserCan ( $action, User $user, LinkTarget $page) | |
A convenience method for calling PermissionManager::userCan with PermissionManager::RIGOR_QUICK. More... | |
userCan ( $action, User $user, LinkTarget $page, $rigor=self::RIGOR_SECURE) | |
Can $user perform $action on a page? More... | |
userHasAllRights (UserIdentity $user,... $actions) | |
Check if user is allowed to make all actions. More... | |
userHasAnyRight (UserIdentity $user,... $actions) | |
Check if user is allowed to make any action. More... | |
userHasRight (UserIdentity $user, $action='') | |
Testing a permission. More... | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Private Member Functions | |
checkActionPermissions ( $action, User $user, $errors, $rigor, $short, LinkTarget $page) | |
Check action permissions not already checked in checkQuickPermissions. More... | |
checkCascadingSourcesRestrictions ( $action, UserIdentity $user, $errors, $rigor, $short, LinkTarget $page) | |
Check restrictions on cascading pages. More... | |
checkPageRestrictions ( $action, User $user, $errors, $rigor, $short, LinkTarget $page) | |
Check against page_restrictions table requirements on this page. More... | |
checkPermissionHooks ( $action, User $user, $errors, $rigor, $short, LinkTarget $page) | |
Check various permission hooks. More... | |
checkQuickPermissions ( $action, User $user, $errors, $rigor, $short, LinkTarget $page) | |
Permissions checks that fail most often, and which are easiest to test. More... | |
checkReadPermissions ( $action, User $user, $errors, $rigor, $short, LinkTarget $page) | |
Check that the user is allowed to read this page. More... | |
checkSiteConfigPermissions ( $action, User $user, $errors, $rigor, $short, LinkTarget $page) | |
Check sitewide CSS/JSON/JS permissions. More... | |
checkSpecialsAndNSPermissions ( $action, UserIdentity $user, $errors, $rigor, $short, LinkTarget $page) | |
Check permissions on special pages & namespaces. More... | |
checkUserBlock ( $action, User $user, $errors, $rigor, $short, LinkTarget $page) | |
Check that the user isn't blocked from editing. More... | |
checkUserConfigPermissions ( $action, UserIdentity $user, $errors, $rigor, $short, LinkTarget $page) | |
Check CSS/JSON/JS sub-page permissions. More... | |
getPermissionErrorsInternal ( $action, User $user, LinkTarget $page, $rigor=self::RIGOR_SECURE, $short=false) | |
Can $user perform $action on a page? This is an internal function, with multiple levels of checks depending on performance needs; see $rigor below. More... | |
getRightsCacheKey (UserIdentity $user) | |
Gets a unique key for user rights cache. More... | |
isNamespaceProtected ( $index, UserIdentity $user) | |
Determines if $user is unable to edit pages in namespace because it has been protected. More... | |
isSameSpecialPage ( $name, LinkTarget $page) | |
Returns true if this title resolves to the named special page. More... | |
missingPermissionError ( $action, $short) | |
Get a description array when the user doesn't have the right to perform $action (i.e. More... | |
resultToError ( $errors, $result) | |
Add the resulting error code to the errors array. More... | |
userCanEditRawHtmlPage (UserIdentity $user) | |
Check if user is allowed to edit sitewide pages that contain raw HTML. More... | |
Private Attributes | |
string[] null | $allRights |
Cached results of getAllPermissions() More... | |
BlockErrorFormatter | $blockErrorFormatter |
bool[] | $cachedRights = [] |
Cached rights for isEveryoneAllowed, [ right => allowed ]. More... | |
$coreRights | |
Array of Strings Core rights. More... | |
GroupPermissionsLookup | $groupPermissionLookup |
HookRunner | $hookRunner |
NamespaceInfo | $nsInfo |
ServiceOptions | $options |
RevisionLookup | $revisionLookup |
SpecialPageFactory | $specialPageFactory |
string[][][] | $temporaryUserRights = [] |
Temporary user rights, valid for the current request only. More... | |
UserCache | $userCache |
UserGroupManager | $userGroupManager |
string[][] | $usersRights = null |
Cached user rights. More... | |
A service class for checking permissions To obtain an instance, use MediaWikiServices::getInstance()->getPermissionManager().
Definition at line 51 of file PermissionManager.php.
MediaWiki\Permissions\PermissionManager::__construct | ( | ServiceOptions | $options, |
SpecialPageFactory | $specialPageFactory, | ||
RevisionLookup | $revisionLookup, | ||
NamespaceInfo | $nsInfo, | ||
GroupPermissionsLookup | $groupPermissionLookup, | ||
UserGroupManager | $userGroupManager, | ||
BlockErrorFormatter | $blockErrorFormatter, | ||
HookContainer | $hookContainer, | ||
UserCache | $userCache | ||
) |
ServiceOptions | $options | |
SpecialPageFactory | $specialPageFactory | |
RevisionLookup | $revisionLookup | |
NamespaceInfo | $nsInfo | |
GroupPermissionsLookup | $groupPermissionLookup | |
UserGroupManager | $userGroupManager | |
BlockErrorFormatter | $blockErrorFormatter | |
HookContainer | $hookContainer | |
UserCache | $userCache |
Definition at line 220 of file PermissionManager.php.
References MediaWiki\Permissions\PermissionManager\$blockErrorFormatter, MediaWiki\Permissions\PermissionManager\$groupPermissionLookup, MediaWiki\Permissions\PermissionManager\$nsInfo, MediaWiki\Permissions\PermissionManager\$options, MediaWiki\Permissions\PermissionManager\$revisionLookup, MediaWiki\Permissions\PermissionManager\$specialPageFactory, MediaWiki\Permissions\PermissionManager\$userCache, MediaWiki\Permissions\PermissionManager\$userGroupManager, and MediaWiki\Config\ServiceOptions\assertRequiredOptions().
MediaWiki\Permissions\PermissionManager::addTemporaryUserRights | ( | UserIdentity | $user, |
$rights | |||
) |
Add temporary user rights, only valid for the current scope.
This is meant for making it possible to programatically trigger certain actions that the user wouldn't be able to trigger themselves; e.g. allow users without the bot right to make bot-flagged actions through certain special pages. Returns a "scope guard" variable; whenever that variable goes out of scope or is consumed via ScopedCallback::consume(), the temporary rights are revoked.
UserIdentity | $user | |
string | string[] | $rights |
Definition at line 1650 of file PermissionManager.php.
References MediaWiki\User\UserIdentity\getId().
|
private |
Check action permissions not already checked in checkQuickPermissions.
string | $action | The action to check |
User | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 997 of file PermissionManager.php.
References MediaWiki\$action, $title, $wgDeleteRevisionsLimit, $wgLang, MediaWiki\Permissions\PermissionManager\checkCascadingSourcesRestrictions(), MediaWiki\Permissions\PermissionManager\checkPageRestrictions(), MediaWiki\Permissions\PermissionManager\getPermissionErrorsInternal(), Title\newFromLinkTarget(), MediaWiki\Permissions\PermissionManager\userCan(), MediaWiki\Permissions\PermissionManager\userHasRight(), and wfMessage().
|
private |
Check restrictions on cascading pages.
string | $action | The action to check |
UserIdentity | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 940 of file PermissionManager.php.
References MediaWiki\$action, $title, Title\newFromLinkTarget(), and MediaWiki\Permissions\PermissionManager\userHasAllRights().
Referenced by MediaWiki\Permissions\PermissionManager\checkActionPermissions().
|
private |
Check against page_restrictions table requirements on this page.
The user must possess all required rights for this action.
string | $action | The action to check |
User | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 890 of file PermissionManager.php.
References MediaWiki\$action, $title, Title\newFromLinkTarget(), and MediaWiki\Permissions\PermissionManager\userHasRight().
Referenced by MediaWiki\Permissions\PermissionManager\checkActionPermissions().
|
private |
Check various permission hooks.
string | $action | The action to check |
User | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 483 of file PermissionManager.php.
References MediaWiki\$action, $title, Title\newFromLinkTarget(), and MediaWiki\Permissions\PermissionManager\resultToError().
|
private |
Permissions checks that fail most often, and which are easiest to test.
string | $action | The action to check |
User | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 790 of file PermissionManager.php.
References MediaWiki\$action, $title, MediaWiki\Permissions\PermissionManager\groupHasPermission(), User\isAnon(), MediaWiki\Permissions\PermissionManager\missingPermissionError(), Title\newFromLinkTarget(), NS_CATEGORY, NS_FILE, NS_USER, and MediaWiki\Permissions\PermissionManager\userHasRight().
|
private |
Check that the user is allowed to read this page.
string | $action | The action to check |
User | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 559 of file PermissionManager.php.
References MediaWiki\$action, $title, SpecialPage\getTitleFor(), MediaWiki\Permissions\PermissionManager\isEveryoneAllowed(), MediaWiki\Permissions\PermissionManager\isSameSpecialPage(), MediaWiki\Permissions\PermissionManager\missingPermissionError(), Title\newFromLinkTarget(), NS_MAIN, and MediaWiki\Permissions\PermissionManager\userHasRight().
|
private |
Check sitewide CSS/JSON/JS permissions.
string | $action | The action to check |
User | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 1141 of file PermissionManager.php.
References MediaWiki\$action, $title, and Title\newFromLinkTarget().
|
private |
Check permissions on special pages & namespaces.
string | $action | The action to check |
UserIdentity | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 1097 of file PermissionManager.php.
References MediaWiki\$action, $title, MediaWiki\Permissions\PermissionManager\isNamespaceProtected(), Title\newFromLinkTarget(), NS_MAIN, NS_MEDIAWIKI, NS_SPECIAL, and wfMessage().
|
private |
Check that the user isn't blocked from editing.
string | $action | The action to check |
User | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 693 of file PermissionManager.php.
References MediaWiki\$action, MediaWiki\$context, $title, Action\exists(), Action\factory(), User\getBlock(), IContextSource\getLanguage(), RequestContext\getMain(), IContextSource\getRequest(), IContextSource\getUser(), MediaWiki\Permissions\PermissionManager\isBlockedFrom(), User\isEmailConfirmed(), Title\newFromLinkTarget(), and Article\newFromTitle().
|
private |
Check CSS/JSON/JS sub-page permissions.
string | $action | The action to check |
UserIdentity | $user | User to check |
array | $errors | List of current errors |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Short circuit on first error |
LinkTarget | $page |
Definition at line 1197 of file PermissionManager.php.
References MediaWiki\$action, $content, $title, MediaWiki\User\UserIdentity\getName(), Title\newFromLinkTarget(), NS_USER, and Revision\RevisionRecord\RAW.
MediaWiki\Permissions\PermissionManager::getAllPermissions | ( | ) |
Get a list of all available permissions.
Definition at line 1516 of file PermissionManager.php.
References MediaWiki\Permissions\PermissionManager\$allRights, and MediaWiki\Permissions\PermissionManager\$coreRights.
MediaWiki\Permissions\PermissionManager::getGroupPermissions | ( | $groups | ) |
Get the permissions associated with a given list of groups.
string[] | $groups | internal group names |
Definition at line 1434 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\getUserPermissions().
MediaWiki\Permissions\PermissionManager::getGroupsWithPermission | ( | $role | ) |
Get all the groups who have a given permission.
string | $role | Role to check |
Definition at line 1447 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\getNamespaceRestrictionLevels().
MediaWiki\Permissions\PermissionManager::getNamespaceRestrictionLevels | ( | $index, | |
UserIdentity | $user = null |
||
) |
Determine which restriction levels it makes sense to use in a namespace, optionally filtered by a user's rights.
int | $index | Index to check |
UserIdentity | null | $user | User to check |
Definition at line 1553 of file PermissionManager.php.
References MediaWiki\Permissions\PermissionManager\getGroupsWithPermission(), and MediaWiki\Permissions\PermissionManager\userHasRight().
MediaWiki\Permissions\PermissionManager::getPermissionErrors | ( | $action, | |
User | $user, | ||
LinkTarget | $page, | ||
$rigor = self::RIGOR_SECURE , |
|||
$ignoreErrors = [] |
|||
) |
Can $user perform $action on a page?
string | $action | Action that permission needs to be checked for |
User | $user | User to check |
LinkTarget | $page | |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
string[] | $ignoreErrors | Set this to a list of message keys whose corresponding errors may be ignored. |
Definition at line 300 of file PermissionManager.php.
References MediaWiki\$action, and MediaWiki\Permissions\PermissionManager\getPermissionErrorsInternal().
|
private |
Can $user perform $action on a page? This is an internal function, with multiple levels of checks depending on performance needs; see $rigor below.
It does not check wfReadOnly().
string | $action | Action that permission needs to be checked for |
User | $user | User to check |
LinkTarget | $page | |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
bool | $short | Set this to true to stop after the first permission error. |
Exception |
Definition at line 380 of file PermissionManager.php.
References MediaWiki\$action.
Referenced by MediaWiki\Permissions\PermissionManager\checkActionPermissions(), MediaWiki\Permissions\PermissionManager\getPermissionErrors(), and MediaWiki\Permissions\PermissionManager\userCan().
|
private |
Gets a unique key for user rights cache.
UserIdentity | $user |
Definition at line 1402 of file PermissionManager.php.
References MediaWiki\User\UserIdentity\isRegistered().
Referenced by MediaWiki\Permissions\PermissionManager\getUserPermissions(), MediaWiki\Permissions\PermissionManager\invalidateUsersRightsCache(), and MediaWiki\Permissions\PermissionManager\overrideUserRightsForTesting().
MediaWiki\Permissions\PermissionManager::getUserPermissions | ( | UserIdentity | $user | ) |
Get the permissions this user has.
UserIdentity | $user |
Definition at line 1332 of file PermissionManager.php.
References MediaWiki\Permissions\PermissionManager\getGroupPermissions(), MediaWiki\User\UserIdentity\getId(), MediaWiki\Permissions\PermissionManager\getRightsCacheKey(), MediaWiki\User\UserIdentity\isRegistered(), and User\newFromIdentity().
Referenced by MediaWiki\Permissions\PermissionManager\userHasRight().
MediaWiki\Permissions\PermissionManager::groupHasPermission | ( | $group, | |
$role | |||
) |
Check, if the given group has the given permission.
If you're wanting to check whether all users have a permission, use PermissionManager::isEveryoneAllowed() instead. That properly checks if it's revoked from anyone.
string | $group | Group to check |
string | $role | Role to check |
Definition at line 1421 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\checkQuickPermissions().
MediaWiki\Permissions\PermissionManager::invalidateUsersRightsCache | ( | $user = null | ) |
Clears users permissions cache, if specific user is provided it tries to clear permissions cache only for provided user.
UserIdentity | null | $user |
Definition at line 1388 of file PermissionManager.php.
References MediaWiki\Permissions\PermissionManager\getRightsCacheKey().
MediaWiki\Permissions\PermissionManager::isBlockedFrom | ( | User | $user, |
LinkTarget | $page, | ||
$fromReplica = false |
|||
) |
Check if user is blocked from editing a particular article.
If the user does not have a block, this will return false.
User | $user | |
LinkTarget | $page | Title to check |
bool | $fromReplica | Whether to check the replica DB instead of the master |
Definition at line 334 of file PermissionManager.php.
References $title, User\getBlock(), User\getTalkPage(), User\isAllowUsertalk(), User\isHidden(), and Title\newFromLinkTarget().
Referenced by MediaWiki\Permissions\PermissionManager\checkUserBlock().
MediaWiki\Permissions\PermissionManager::isEveryoneAllowed | ( | $right | ) |
Check if all users may be assumed to have the given permission.
We generally assume so if the right is granted to '*' and isn't revoked on any group. It doesn't attempt to take grants or other extension limitations on rights into account in the general case, though, as that would require it to always return false and defeat the purpose. Specifically, session-based rights restrictions (such as OAuth or bot passwords) are applied based on the current session.
string | $right | Right to check |
Definition at line 1466 of file PermissionManager.php.
References MediaWiki\Session\SessionManager\getGlobalSession().
Referenced by MediaWiki\Permissions\PermissionManager\checkReadPermissions().
|
private |
Determines if $user is unable to edit pages in namespace because it has been protected.
int | $index | |
UserIdentity | $user |
Definition at line 1537 of file PermissionManager.php.
References MediaWiki\Permissions\PermissionManager\userHasAllRights().
Referenced by MediaWiki\Permissions\PermissionManager\checkSpecialsAndNSPermissions().
|
private |
Returns true if this title resolves to the named special page.
string | $name | The special page name |
LinkTarget | $page |
Definition at line 666 of file PermissionManager.php.
References MediaWiki\Linker\LinkTarget\getDBkey(), MediaWiki\Linker\LinkTarget\getNamespace(), and NS_SPECIAL.
Referenced by MediaWiki\Permissions\PermissionManager\checkReadPermissions().
|
private |
Get a description array when the user doesn't have the right to perform $action (i.e.
when User::isAllowed() returns false)
string | $action | The action to check |
bool | $short | Short circuit on first error |
Definition at line 647 of file PermissionManager.php.
References MediaWiki\$action, and User\newFatalPermissionDeniedStatus().
Referenced by MediaWiki\Permissions\PermissionManager\checkQuickPermissions(), and MediaWiki\Permissions\PermissionManager\checkReadPermissions().
MediaWiki\Permissions\PermissionManager::overrideUserRightsForTesting | ( | $user, | |
$rights = [] |
|||
) |
Overrides user permissions cache.
User | $user | |
string[] | string | $rights |
Exception |
Definition at line 1669 of file PermissionManager.php.
References MediaWiki\Permissions\PermissionManager\getRightsCacheKey().
MediaWiki\Permissions\PermissionManager::quickUserCan | ( | $action, | |
User | $user, | ||
LinkTarget | $page | ||
) |
A convenience method for calling PermissionManager::userCan with PermissionManager::RIGOR_QUICK.
Suitable for use for nonessential UI controls in common cases, but not for functional access control. May provide false positives, but should never provide a false negative.
string | $action | |
User | $user | |
LinkTarget | $page |
Definition at line 279 of file PermissionManager.php.
References MediaWiki\$action, and MediaWiki\Permissions\PermissionManager\userCan().
|
private |
Add the resulting error code to the errors array.
array | $errors | List of current errors |
array | string | MessageSpecifier | false | $result | Result of errors |
Definition at line 523 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\checkPermissionHooks().
MediaWiki\Permissions\PermissionManager::userCan | ( | $action, | |
User | $user, | ||
LinkTarget | $page, | ||
$rigor = self::RIGOR_SECURE |
|||
) |
Can $user perform $action on a page?
The method replaced Title::userCan() The $user parameter need to be superseded by UserIdentity value in future The $title parameter need to be superseded by PageIdentity value in future
string | $action | |
User | $user | |
LinkTarget | $page | |
string | $rigor | One of PermissionManager::RIGOR_ constants
|
Definition at line 260 of file PermissionManager.php.
References MediaWiki\$action, and MediaWiki\Permissions\PermissionManager\getPermissionErrorsInternal().
Referenced by MediaWiki\Permissions\PermissionManager\checkActionPermissions(), and MediaWiki\Permissions\PermissionManager\quickUserCan().
|
private |
Check if user is allowed to edit sitewide pages that contain raw HTML.
Pages listed in $wgRawHtmlMessages allow raw HTML which can be used to deploy CSS or JS code to all users so both rights are required to edit them.
UserIdentity | $user |
Definition at line 1632 of file PermissionManager.php.
References MediaWiki\Permissions\PermissionManager\userHasAllRights().
MediaWiki\Permissions\PermissionManager::userHasAllRights | ( | UserIdentity | $user, |
$actions | |||
) |
Check if user is allowed to make all actions.
UserIdentity | $user | |
string | ...$actions |
Definition at line 1314 of file PermissionManager.php.
References MediaWiki\$action, and MediaWiki\Permissions\PermissionManager\userHasRight().
Referenced by MediaWiki\Permissions\PermissionManager\checkCascadingSourcesRestrictions(), MediaWiki\Permissions\PermissionManager\isNamespaceProtected(), and MediaWiki\Permissions\PermissionManager\userCanEditRawHtmlPage().
MediaWiki\Permissions\PermissionManager::userHasAnyRight | ( | UserIdentity | $user, |
$actions | |||
) |
Check if user is allowed to make any action.
UserIdentity | $user | |
string | ...$actions |
Definition at line 1297 of file PermissionManager.php.
References MediaWiki\$action, and MediaWiki\Permissions\PermissionManager\userHasRight().
MediaWiki\Permissions\PermissionManager::userHasRight | ( | UserIdentity | $user, |
$action = '' |
|||
) |
Testing a permission.
UserIdentity | $user | |
string | $action |
Definition at line 1280 of file PermissionManager.php.
References MediaWiki\$action, and MediaWiki\Permissions\PermissionManager\getUserPermissions().
Referenced by MediaWiki\Permissions\PermissionManager\checkActionPermissions(), MediaWiki\Permissions\PermissionManager\checkPageRestrictions(), MediaWiki\Permissions\PermissionManager\checkQuickPermissions(), MediaWiki\Permissions\PermissionManager\checkReadPermissions(), MediaWiki\Permissions\PermissionManager\getNamespaceRestrictionLevels(), SpecialContributions\getUserLinks(), MediaWiki\Permissions\PermissionManager\userHasAllRights(), and MediaWiki\Permissions\PermissionManager\userHasAnyRight().
|
private |
Cached results of getAllPermissions()
Definition at line 96 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\getAllPermissions().
|
private |
Definition at line 99 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\__construct().
|
private |
Cached rights for isEveryoneAllowed, [ right => allowed ].
Definition at line 117 of file PermissionManager.php.
|
private |
Array of Strings Core rights.
Each of these should have a corresponding message of the form "right-$right".
Definition at line 125 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\getAllPermissions().
|
private |
Definition at line 90 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\__construct().
|
private |
Definition at line 102 of file PermissionManager.php.
|
private |
Definition at line 87 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\__construct().
|
private |
Definition at line 78 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\__construct().
|
private |
Definition at line 84 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\__construct().
|
private |
Definition at line 81 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\__construct().
|
private |
Temporary user rights, valid for the current request only.
userid => override group => rights
Definition at line 114 of file PermissionManager.php.
|
private |
Definition at line 105 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\__construct().
|
private |
Definition at line 93 of file PermissionManager.php.
Referenced by MediaWiki\Permissions\PermissionManager\__construct().
|
private |
Cached user rights.
Definition at line 108 of file PermissionManager.php.
const MediaWiki\Permissions\PermissionManager::CONSTRUCTOR_OPTIONS |
Definition at line 65 of file PermissionManager.php.