Fix access to groupManager

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-02-20 18:05:21 +01:00
parent bb2d8bafc9
commit 1d1068753f
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 1 additions and 1 deletions

View File

@ -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 [];
}