Don't skip UserGetRights hook in addGroup/removeGroup
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 9 Jul 2013 19:45:46 +0000 (15:45 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 10 Jul 2013 14:31:11 +0000 (10:31 -0400)
commit618bc84b626d9085fc61cce47aa6d371953882c2
tree83b06227bfcace57edbb80cb13f9b14e4947ad0d
parent99257f5612deaad8e7f44450d2cd7df534360af5
Don't skip UserGetRights hook in addGroup/removeGroup

The addGroup and removeGroup functions in User were reloading the cached
mRights, but not calling the UserGetRights hook that is supposed to
allow for extensions to modify the rights list. Instead, let's just null
the cache so it will be reloaded next time something calls
$user->getRights().

Note we still call $this->getEffectiveGroups( true ), though, to trigger
that to recache.

Change-Id: I81784917303b639bc7c22c726e9cbdb0d191e674
includes/User.php