$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' );
}
if ( !$messages ) {
return array();
}
- $result = $this->getResult();
$ret = array();
foreach ( $messages as $m ) {
- $message = array();
if ( $m['message'] instanceof Message ) {
$msg = $m['message'];
$message = array( 'message' => $msg->getKey() );