BlockPermissionChecker: Clarify that 'unblockself' allows altering block

Change-Id: Ic9b2e6d8ca7afe4c680c994955ebccfbe89a133c
This commit is contained in:
Thalia 2020-06-16 16:11:24 +01:00
parent ea9c326384
commit c464c42989

View file

@ -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 {