dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
776a943
)
*Don't let blocked users patrol
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 27 Sep 2007 18:20:06 +0000
(18:20 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 27 Sep 2007 18:20:06 +0000
(18:20 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
756a763
..
bcb3c62
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-1525,6
+1525,15
@@
class Article {
$wgOut->permissionRequired( 'patrol' );
return;
}
+
+ # Check permissions
+ $permission_errors = $this->mTitle->getUserPermissionsErrors( 'delete', $wgUser );
+
+ if (count($permission_errors)>0)
+ {
+ $wgOut->showPermissionsErrorPage( $permission_errors );
+ return;
+ }
# If we haven't been given an rc_id value, we can't do anything
$rcid = $wgRequest->getVal( 'rcid' );