diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-04-27 15:25:13 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-04-27 15:25:13 +0200 |
commit | 876c162df831f70a9b4ed886f35c47c9c22df5ea (patch) | |
tree | c86bf3167a34b49801975cc170ebc6571026c814 /core/Command | |
parent | 346344c15371597ec825059abdf7564da9334b7e (diff) | |
download | nextcloud-server-876c162df831f70a9b4ed886f35c47c9c22df5ea.tar.gz nextcloud-server-876c162df831f70a9b4ed886f35c47c9c22df5ea.zip |
Use the searchDisplayName recommended method in user:list
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/User/ListCommand.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/User/ListCommand.php b/core/Command/User/ListCommand.php index c254a8a11cf..bf4bf7f030e 100644 --- a/core/Command/User/ListCommand.php +++ b/core/Command/User/ListCommand.php @@ -74,7 +74,7 @@ class ListCommand extends Base { } protected function execute(InputInterface $input, OutputInterface $output): int { - $users = $this->userManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset')); + $users = $this->userManager->searchDisplayName('', (int) $input->getOption('limit'), (int) $input->getOption('offset')); $this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool)$input->getOption('info'))); return 0; |