$params = $this->extractRequestParams();
$user = $this->getUser();
-
if ( !$user->isAllowed( RevisionDeleter::getRestriction( $params['type'] ) ) ) {
$this->dieUsageMsg( 'badaccess-group0' );
}
+ if ( $user->isBlocked() ) {
+ $this->dieBlocked( $user->getBlock() );
+ }
+
if ( !$params['ids'] ) {
$this->dieUsage( "At least one value is required for 'ids'", 'badparams' );
}