Always empty cache before updating a group

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-08-01 11:41:56 +02:00
parent 1b102ca9b3
commit ce5a4e5b66
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View 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;