also clear cached users when removing a single backend
This commit is contained in:
parent
2a82964830
commit
0ce2b2708c
|
@ -57,6 +57,7 @@ class Manager extends PublicEmitter {
|
||||||
* @param \OC_User_Backend $backend
|
* @param \OC_User_Backend $backend
|
||||||
*/
|
*/
|
||||||
public function removeBackend($backend) {
|
public function removeBackend($backend) {
|
||||||
|
$this->cachedUsers = array();
|
||||||
if (($i = array_search($backend, $this->backends)) !== false) {
|
if (($i = array_search($backend, $this->backends)) !== false) {
|
||||||
unset($this->backends[$i]);
|
unset($this->backends[$i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue