mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Also invalidate groups after deletion
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
8d5a4bc0c4
commit
a9c2a4285c
1 changed files with 11 additions and 2 deletions
|
|
@ -1133,8 +1133,17 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
|
|||
if ($this->groupPluginManager->implementsActions(GroupInterface::CREATE_GROUP)) {
|
||||
if ($dn = $this->groupPluginManager->createGroup($gid)) {
|
||||
//updates group mapping
|
||||
$this->access->dn2ocname($dn, $gid, false);
|
||||
$this->access->connection->writeToCache("groupExists".$gid, true);
|
||||
$uuid = $this->access->getUUID($dn, false);
|
||||
if(is_string($uuid)) {
|
||||
$this->access->mapAndAnnounceIfApplicable(
|
||||
$this->access->getGroupMapper(),
|
||||
$dn,
|
||||
$gid,
|
||||
$uuid,
|
||||
false
|
||||
);
|
||||
$this->access->connection->writeToCache("groupExists" . $gid, true);
|
||||
}
|
||||
}
|
||||
return $dn != null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue