Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use service for groups and permissions #298

Merged
merged 15 commits into from
Nov 9, 2021
Merged

Use service for groups and permissions #298

merged 15 commits into from
Nov 9, 2021

Conversation

malberts
Copy link
Contributor

@malberts malberts commented Nov 6, 2021

Fixes: #294

case 'group':
$observedValues = MediaWikiServices::getInstance()
->getUserGroupManager()
->getUserEffectiveGroups( $user );
Copy link
Contributor Author

@malberts malberts Nov 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still checking if getUserEffectiveGroups's implicit value for the second parameter ($queryFlags = self::READ_NORMAL) is fine. In the deprecated getEffectiveGroups method it is passing in User->queryFlagsUsed where the default is the same, but it is possible for that property's value to change (User->load*). However, I'm not 100% sure if the cases where it is changeable are relevant to Chameleon. It seems like when User is retrieved using Skin->getUser() it doesn't call those load methods.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this is fine

@malberts malberts marked this pull request as ready for review November 9, 2021 04:49
@malberts malberts merged commit 3b98859 into ProfessionalWiki:master Nov 9, 2021
@malberts malberts deleted the issue-294 branch November 9, 2021 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User::getRights was deprecated in MediaWiki 1.34
2 participants