parent
16f12ef061
commit
d08778122b
|
@ -29,7 +29,6 @@ use OCP\Files\IRootFolder;
|
||||||
use OCP\IConfig;
|
use OCP\IConfig;
|
||||||
use OCP\IGroupManager;
|
use OCP\IGroupManager;
|
||||||
use OCP\IUser;
|
use OCP\IUser;
|
||||||
use OCP\IGroup;
|
|
||||||
use OCP\IUserManager;
|
use OCP\IUserManager;
|
||||||
use Symfony\Component\Console\Command\Command;
|
use Symfony\Component\Console\Command\Command;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
|
@ -215,12 +214,12 @@ class Index extends Command
|
||||||
}
|
}
|
||||||
} elseif ($gid = $this->opts->group) {
|
} elseif ($gid = $this->opts->group) {
|
||||||
if ($group = $this->groupManager->get($gid)) {
|
if ($group = $this->groupManager->get($gid)) {
|
||||||
$this->output->writeln("<error>Group {$gid} not found</error>");
|
|
||||||
} else {
|
|
||||||
foreach ($group->getUsers() as $user) {
|
foreach ($group->getUsers() as $user) {
|
||||||
$closure($user);
|
$closure($user);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
$this->output->writeln("<error>Group {$gid} not found</error>");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->userManager->callForSeenUsers(static fn (IUser $user) => $closure($user));
|
$this->userManager->callForSeenUsers(static fn (IUser $user) => $closure($user));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue