Fix access to groupManager

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/13850/head
Daniel Kesselberg 6 years ago
parent bb2d8bafc9
commit 1d1068753f
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
  1. 2
      core/Command/App/Enable.php

@ -149,7 +149,7 @@ class Enable extends Command implements CompletionAwareInterface {
if ($optionName === 'groups') {
return array_map(function (IGroup $group) {
return $group->getGID();
}, \OC::$server->getGroupManager()->search($context->getCurrentWord()));
}, $this->groupManager->search($context->getCurrentWord()));
}
return [];
}

Loading…
Cancel
Save