Last modified: 2013-06-18 13:35:37 UTC
I have some groups that I am using $wgAutopromote to move users into based on their ldap groups. On Special:Listusers, I do see the groups there. In the source of the page the value of var wgUserGroups also contains these groups. However, and this is an assumption, that because these entries are not marked on userrights is the reason why a page access extension is not working. Actually I have confirmed this given that I select the group on the userrights page the page access extension recognizes the group now.
This was also noted by another user, http://www.mediawiki.org/wiki/Manual_talk:$wgAutopromote#AutoPromotion_and_Custom_groups.
Also the group is not implicit given I have created the group in my localsettings.php by adding it to the $wgGroupPermissions map.
After looking through the code it seems everything from autopromote is basically dynamic and nothing is persisted.
So it seems this is intended behavior of this configuration option. It seems thought that its possible geteffectivegroups() is not returning all of the groups and causing another extension to malfunction.
(In reply to comment #2)
> So it seems this is intended behavior of this configuration option. It seems
> thought that its possible geteffectivegroups() is not returning all of the
> groups and causing another extension to malfunction.
Extensions intending to check rights should probably be using isAllowed() to check for a specific right instead of using getEffectiveGroups() to check for a specific group.
This sounds like a right behaviour, because autopromoted groups are implicit groups and that groups cannot be given by Special:UserRights.