$request = $this->getRequest();
// Check blocks
- if ( $user->isBlocked() ) {
- throw new UserBlockedError( $user->getBlock() );
+ // @TODO Use PermissionManager::isBlockedFrom() instead.
+ $block = $user->getBlock();
+ if ( $block ) {
+ throw new UserBlockedError( $block );
}
$this->setHeaders();
* the user to modify the tags applied to those items.
*/
protected function showForm() {
- $userAllowed = true;
-
$out = $this->getOutput();
// Messages: tags-edit-revision-selected, tags-edit-logentry-selected
$out->wrapWikiMsg( "<strong>$1</strong>", [