72 $this->options = $options;
74 $this->performer = $performer;
85 if ( !$this->performer->isAllowed(
'block' ) ) {
86 return 'badaccess-group0';
91 !$this->performer->isAllowed(
'hideuser' )
93 return 'unblock-hideuser';
111 $block = $this->performer->getBlock();
117 if ( !$block->isSitewide() ) {
122 $performerIdentity = $this->performer->getUser();
126 $this->target->
getId() === $performerIdentity->getId()
131 if ( $block->getBlocker() && $performerIdentity->equals( $block->getBlocker() ) ) {
136 if ( $this->performer->isAllowed(
'unblockself' ) ) {
139 return 'ipbnounblockself';
145 $block->getBlocker() &&
146 $this->target->
equals( $block->getBlocker() )
164 $this->performer->isAllowed(
'blockemail' );
A class containing constants representing the names of configuration variables.
const EnableUserEmail
Name constant for the EnableUserEmail setting, for use with Config::get()