throw new PermissionsError( 'deletedhistory' );
} elseif( wfReadOnly() ) {
throw new ReadOnlyError;
- } elseif( $user->isBlocked() ) {
- throw new UserBlockedError( $user->getBlock() );
}
$this->mIsAllowed = $user->isAllowed('deleterevision'); // for changes