A user removed from a group with deleteUsers() will still appear to be in that
group according to Inbox.pm, User::getGroupIdsRecursive() and User::getGroups(). Groups.pm wasn't clearing the cache key "getGroupsForUser" in clearCaches(). Tests and fix.
This commit is contained in:
parent
2c08b4e712
commit
867095d811
2 changed files with 9 additions and 4 deletions
|
|
@ -282,6 +282,7 @@ sub clearCaches {
|
|||
$session->stow->delete("groupObj");
|
||||
$session->stow->delete("isInGroup");
|
||||
$session->stow->delete("gotGroupsInGroup");
|
||||
$session->stow->delete("gotGroupsForUser");
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue