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') {
|
if ($optionName === 'groups') {
|
||||||
return array_map(function (IGroup $group) {
|
return array_map(function (IGroup $group) {
|
||||||
return $group->getGID();
|
return $group->getGID();
|
||||||
}, \OC::$server->getGroupManager()->search($context->getCurrentWord()));
|
}, $this->groupManager->search($context->getCurrentWord()));
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue