dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
0acebab
)
Merge "Remove patrol config check in User::isAllowed()"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 13 Jan 2016 21:47:55 +0000
(21:47 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 13 Jan 2016 21:47:55 +0000
(21:47 +0000)
includes/user/User.php
patch
|
blob
|
history
diff --git
a/includes/user/User.php
b/includes/user/User.php
index
5ea6d0d
..
6a6b594
100644
(file)
--- a/
includes/user/User.php
+++ b/
includes/user/User.php
@@
-3251,13
+3251,6
@@
class User implements IDBAccessObject {
if ( $action === '' ) {
return true; // In the spirit of DWIM
}
- // Patrolling may not be enabled
- if ( $action === 'patrol' || $action === 'autopatrol' ) {
- global $wgUseRCPatrol, $wgUseNPPatrol;
- if ( !$wgUseRCPatrol && !$wgUseNPPatrol ) {
- return false;
- }
- }
// Use strict parameter to avoid matching numeric 0 accidentally inserted
// by misconfiguration: 0 == 'foo'
return in_array( $action, $this->getRights(), true );