48 private $targetType =
null;
78 $this->options = $options;
79 list( $this->target, $this->targetType ) = $blockUtils->
parseBlockTarget( $target );
80 $this->performer = $performer;
91 if ( !$this->performer->isAllowed(
'block' ) ) {
92 return 'badaccess-group0';
97 !$this->performer->isAllowed(
'hideuser' )
99 return 'unblock-hideuser';
117 $block = $this->performer->getBlock();
123 if ( !$block->isSitewide() ) {
128 $performerIdentity = $this->performer->getUser();
132 $this->target->
getId() === $performerIdentity->getId()
137 if ( $block->getBlocker() && $performerIdentity->equals( $block->getBlocker() ) ) {
142 if ( $this->performer->isAllowed(
'unblockself' ) ) {
145 return 'ipbnounblockself';
151 $block->getBlocker() &&
152 $this->target->
equals( $block->getBlocker() )
170 $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()