Add UserGroupMembership details to the UserGroupsChanged hook
For Echo. Bug: T159301 Change-Id: I5d32445f8e5b41599889b8488a2431e7a908f858
This commit is contained in:
parent
6971569512
commit
72c969d677
2 changed files with 6 additions and 1 deletions
|
|
@ -3589,6 +3589,10 @@ $removed: Groups removed
|
|||
$performer: User who performed the change, false if via autopromotion
|
||||
$reason: The reason, if any, given by the user performing the change,
|
||||
false if via autopromotion.
|
||||
$oldUGMs: An associative array (group name => UserGroupMembership object) of
|
||||
the user's group memberships before the change.
|
||||
$newUGMs: An associative array (group name => UserGroupMembership object) of
|
||||
the user's current group memberships.
|
||||
|
||||
'UserIsBlockedFrom': Check if a user is blocked from a specific page (for
|
||||
specific block exemptions).
|
||||
|
|
|
|||
|
|
@ -387,7 +387,8 @@ class UserrightsPage extends SpecialPage {
|
|||
$user->invalidateCache();
|
||||
|
||||
// update groups in external authentication database
|
||||
Hooks::run( 'UserGroupsChanged', [ $user, $add, $remove, $this->getUser(), $reason ] );
|
||||
Hooks::run( 'UserGroupsChanged', [ $user, $add, $remove, $this->getUser(),
|
||||
$reason, $oldUGMs, $newUGMs ] );
|
||||
MediaWiki\Auth\AuthManager::callLegacyAuthPlugin(
|
||||
'updateExternalDBGroups', [ $user, $add, $remove ]
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue