Prevent blocked users from performing revision deletion
[lhc/web/wiklou.git] / includes / specials / SpecialRevisiondelete.php
index 5ed0483..6dcbcb1 100644 (file)
@@ -118,6 +118,11 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
                $output = $this->getOutput();
                $user = $this->getUser();
 
+               // Check blocks
+               if ( $user->isBlocked() ) {
+                       throw new UserBlockedError( $user->getBlock() );
+               }
+
                $this->setHeaders();
                $this->outputHeader();
                $request = $this->getRequest();