BlockPermissionChecker: Clarify that 'unblockself' allows altering block
Change-Id: Ic9b2e6d8ca7afe4c680c994955ebccfbe89a133c
This commit is contained in:
parent
ea9c326384
commit
c464c42989
1 changed files with 2 additions and 1 deletions
|
|
@ -95,11 +95,12 @@ class BlockPermissionChecker {
|
|||
) {
|
||||
// Blocked admin is trying to alter their own block
|
||||
|
||||
// Self-blocked admins can always remove their block
|
||||
// Self-blocked admins can always remove or alter their block
|
||||
if ( $this->performer->blockedBy() === $this->performer->getName() ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Users with 'unblockself' right can unblock themselves or alter their own block
|
||||
if ( $this->permissionManager->userHasRight( $this->performer, 'unblockself' ) ) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue