r56471 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r56470
|
r56471
|
r56472
>
Date:
00:56, 17 September 2009
Author:
werdna
Status:
ok
Tags:
Comment:
Fix bug where checking another user's blocked status (like for contributions) would cause you to be autoblocked if that user was blocked. Regression in
r56325
Modified paths:
/trunk/phase3/includes/User.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/User.php
—
—
@@ -1118,7 +1118,7 @@
1119
1119
$this->mBlockreason = $this->mBlock->mReason;
1120
1120
$this->mHideName = $this->mBlock->mHideName;
1121
1121
$this->mAllowUsertalk = $this->mBlock->mAllowUsertalk;
1122
- if ( $this->isLoggedIn() ) {
1122
+ if ( $this->isLoggedIn() && $wgUser->getID() == $this->getID() ) {
1123
1123
$this->spreadBlock();
1124
1124
}
1125
1125
} else {
Follow-up revisions
Revision
Commit summary
Author
Date
r56473
Merge autoblock bug fix
r56471
werdna
00:57, 17 September 2009
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r56325
Fixing User::getBlockedStatus which broke
r55918
. Function now works for all ...
churchofemacs
19:34, 14 September 2009
Status & tagging log
18:03, 9 December 2011
Aaron Schulz
(
talk
|
contribs
)
changed the
tags
for r56471
[
removed:
ok]
22:00, 29 September 2009
Brion VIBBER
(
talk
|
contribs
)
changed the
status
of r56471
[
removed:
new
added:
ok]
00:58, 17 September 2009
Aaron Schulz
(
talk
|
contribs
)
changed the
tags
for r56471
[
removed:
o
added:
ok]
00:58, 17 September 2009
Aaron Schulz
(
talk
|
contribs
)
changed the
tags
for r56471
[
added:
o]