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:
95eed85
)
Make ApiMain use isBot() to catch global bots in checkReadOnly()
author
Aaron Schulz
<aschulz@wikimedia.org>
Sun, 18 Sep 2016 21:01:42 +0000
(14:01 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Sun, 18 Sep 2016 21:01:42 +0000
(14:01 -0700)
Change-Id: I2090b1aad8a5858965e4ec261f8e88c37414e804
includes/api/ApiMain.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
1f3c76a
..
ae3f3f2
100644
(file)
--- a/
includes/api/ApiMain.php
+++ b/
includes/api/ApiMain.php
@@
-1299,7
+1299,7
@@
class ApiMain extends ApiBase {
}
if ( $module->isWriteMode()
- &&
in_array( 'bot', $this->getUser()->getGroups()
)
+ &&
$this->getUser()->isBot(
)
&& wfGetLB()->getServerCount() > 1
) {
$this->checkBotReadOnly();