]> source.dussan.org Git - nextcloud-server.git/commitdiff
Always empty cache before updating a group
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 1 Aug 2023 09:41:56 +0000 (11:41 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 10 Aug 2023 08:57:34 +0000 (10:57 +0200)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/user_ldap/lib/Command/CheckGroup.php

index 8617b06c57f1007e1de5ef17e2f046a69431e338..91faa11888cceabcfa5fc4fa345d03fd0d90067c 100644 (file)
@@ -89,6 +89,7 @@ class CheckGroup extends Command {
                        if ($exists === true) {
                                $output->writeln('The group is still available on LDAP.');
                                if ($input->getOption('update')) {
+                                       $this->backend->getLDAPAccess($gid)->connection->clearCache();
                                        $this->updateGroup($gid, $output, $wasMapped);
                                }
                                return 0;