* @return bool
*/
public function canProcessExpiries() {
- return !$this->getConfig()->get( 'DisableUserGroupExpiry' );
+ return true;
}
/**
$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 ]
);