aboutsummaryrefslogtreecommitdiffstats
path: root/includes/user
diff options
context:
space:
mode:
authorlziad <p4.wikipedia@gmail.com>2021-02-11 13:28:20 +0800
committerlziad <p4.wikipedia@gmail.com>2021-02-11 13:39:17 +0800
commitdada89cd93c597d6faa99aee144b43a86a02f18e (patch)
tree55d2d1a7ed2a593e0a9c160172919fe9384ef714 /includes/user
parentf9feb4a9268f41b1c762f479503ff559d57130ad (diff)
downloadmediawikicore-dada89cd93c597d6faa99aee144b43a86a02f18e.tar.gz
mediawikicore-dada89cd93c597d6faa99aee144b43a86a02f18e.zip
Followups for UserGroupManager
UserRightsProxy::addGroup has to be allowed to update the old group as well, which is used for granting interwiki rights, similar to the change to User::addGroup in c8d3f524ee. Bug: T264214 Change-Id: Ia434e1c8c171969ac657094e7f673c4f24f13bd5
Diffstat (limited to 'includes/user')
-rw-r--r--includes/user/UserRightsProxy.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/user/UserRightsProxy.php b/includes/user/UserRightsProxy.php
index 4218b5f0158d..3018a736ed96 100644
--- a/includes/user/UserRightsProxy.php
+++ b/includes/user/UserRightsProxy.php
@@ -236,7 +236,8 @@ class UserRightsProxy {
// see comment in getGroupMemberships.
new UserIdentityValue( $this->getId(), $this->getName(), 0 ),
$group,
- $expiry
+ $expiry,
+ true
);
}