-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conversation
case 'group': | ||
$observedValues = MediaWikiServices::getInstance() | ||
->getUserGroupManager() | ||
->getUserEffectiveGroups( $user ); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Fixes: #294