dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prevent blocked users from performing revision deletion
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialRevisiondelete.php
diff --git
a/includes/specials/SpecialRevisiondelete.php
b/includes/specials/SpecialRevisiondelete.php
index
5ed0483
..
6dcbcb1
100644
(file)
--- a/
includes/specials/SpecialRevisiondelete.php
+++ b/
includes/specials/SpecialRevisiondelete.php
@@
-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();