Also clear cached UserGroup when a user is added/removed
This commit is contained in:
parent
00e27d5343
commit
cb37a2716a
|
@ -61,6 +61,18 @@ class Manager extends PublicEmitter {
|
|||
unset($cachedGroups[$group->getGID()]);
|
||||
$cachedUserGroups = array();
|
||||
});
|
||||
$this->listen('\OC\Group', 'postAddUser', function ($group) use (&$cachedUserGroups) {
|
||||
/**
|
||||
* @var \OC\Group\Group $group
|
||||
*/
|
||||
$cachedUserGroups = array();
|
||||
});
|
||||
$this->listen('\OC\Group', 'postRemoveUser', function ($group) use (&$cachedUserGroups) {
|
||||
/**
|
||||
* @var \OC\Group\Group $group
|
||||
*/
|
||||
$cachedUserGroups = array();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue