Revision 0afc06ae
Added by Greg Sutcliffe almost 10 years ago
app/models/usergroup.rb | ||
---|---|---|
group_list.sort.uniq
|
||
end
|
||
|
||
def expire_topbar_cache(sweeper)
|
||
users.each { |u| u.expire_topbar_cache(sweeper) }
|
||
end
|
||
|
||
protected
|
||
# Recurses down the tree of usergroups and finds the users
|
||
# [+group_list+]: Array of Usergroups that have already been processed
|
Also available in: Unified diff
Fixes #6065 - Update TopbarSweeper to clear cache for other users than User.current
(cherry picked from commit 70acceb5de46868358714ef2aaef0387cbcda4c3)
Conflicts:
app/models/user.rb