mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Make sure mapping cache is cleared when deleting a user
This avoids phantom remnants staying after user deletion Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
68fecc1d9f
commit
51ea7dc020
1 changed files with 5 additions and 0 deletions
|
|
@ -379,6 +379,11 @@ abstract class AbstractMapping {
|
|||
DELETE FROM `' . $this->getTableName() . '`
|
||||
WHERE `owncloud_name` = ?');
|
||||
|
||||
$dn = array_search($name, $this->cache);
|
||||
if ($dn !== false) {
|
||||
unset($this->cache[$dn]);
|
||||
}
|
||||
|
||||
return $this->modify($statement, [$name]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue