https://bugzilla.wikimedia.org/show_bug.cgi?id=17077


Sam Sexton <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #6 from Sam Sexton <[email protected]>  2009-01-21 10:34:38 
UTC ---
I've finally solved this myself - the crucial clue was finding out that in
loadFromDatabase(), mGroups is nullified and the assignment of the groups
deferred to loadGroups(), which is called by saveToCache() - this in turn is
called from loadFromId(), so I added a call to saveToCache() to my hook and at
long last, I can see the restricted groups. I will sanitise my code and add it
to the discussion page at
http://www.mediawiki.org/wiki/Manual:Hooks/UserLoadFromSession so that it can
serve as an example of what's needed - adding the call wasn't really too
obvious! ;-)


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to