Fix access to groupManager
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
bb2d8bafc9
commit
1d1068753f
|
@ -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…
Reference in New Issue