X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialEditTags.php;h=6ef6cb3f7d6971a20cfc867b778c36d950d13fb9;hb=b7131c89e9ad0d69beb5373df794e3d63e3c5cb6;hp=520380763f36a423561a10f72d3fc2b965b9ea9b;hpb=f012b1d4a22190648ecd76061c94ce0c0a7519c6;p=lhc%2Fweb%2Fwiklou.git 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() ); }