X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialEditTags.php;h=6ef6cb3f7d6971a20cfc867b778c36d950d13fb9;hp=520380763f36a423561a10f72d3fc2b965b9ea9b;hb=8a26fa0508e69f7cdc1680db57c4d8983a70de84;hpb=3353ced6cd3148de1549568ee9633a913fd5faab diff --git a/includes/specials/SpecialEditTags.php b/includes/specials/SpecialEditTags.php index 520380763f..6ef6cb3f7d 100644 --- a/includes/specials/SpecialEditTags.php +++ b/includes/specials/SpecialEditTags.php @@ -68,8 +68,10 @@ class SpecialEditTags extends UnlistedSpecialPage { $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(); @@ -225,6 +227,9 @@ class SpecialEditTags extends UnlistedSpecialPage { $list = $this->getList(); for ( $list->reset(); $list->current(); $list->next() ) { $item = $list->current(); + if ( !$item->canView() ) { + throw new ErrorPageError( 'permissionserrors', 'tags-update-no-permission' ); + } $numRevisions++; $out->addHTML( $item->getHTML() ); }