Merge pull request #21836 from RomanKreisel/master

Solves #21835 (https://github.com/owncloud/core/issues/21835)
This commit is contained in:
Thomas Müller 2016-01-22 17:26:28 +01:00
commit a203089cfd
1 changed files with 5 additions and 0 deletions

View File

@ -126,10 +126,15 @@ class Manager extends PublicEmitter implements IGroupManager {
*/ */
public function addBackend($backend) { public function addBackend($backend) {
$this->backends[] = $backend; $this->backends[] = $backend;
$this->clearCaches();
} }
public function clearBackends() { public function clearBackends() {
$this->backends = array(); $this->backends = array();
$this->clearCaches();
}
protected function clearCaches() {
$this->cachedGroups = array(); $this->cachedGroups = array();
$this->cachedUserGroups = array(); $this->cachedUserGroups = array();
} }