67 if ( $this->permissionManager->isBlockedFrom( $this->user, $this->title ) ) {
68 $this->result = self::CONSTRAINT_FAILED;
69 return self::CONSTRAINT_FAILED;
72 $this->result = self::CONSTRAINT_PASSED;
73 return self::CONSTRAINT_PASSED;
79 if ( $this->result === self::CONSTRAINT_FAILED ) {
80 $statusValue->
setResult(
false, self::AS_BLOCKED_PAGE_FOR_USER );
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.
Verify user permissions: Must not be blocked from the page.
getLegacyStatus()
Get the legacy status for failure (or success)
__construct(PermissionManager $permissionManager, LinkTarget $title, User $user)
PermissionManager $permissionManager
Generic operation result class Has warning/error list, boolean status and arbitrary value.
setResult( $ok, $value=null)
Change operation result.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Interface for all constraints that can prevent edits.