From 1d1068753f019580982297fee6c317fa89261d05 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Wed, 20 Feb 2019 18:05:21 +0100 Subject: [PATCH] Fix access to groupManager Signed-off-by: Daniel Kesselberg --- core/Command/App/Enable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Command/App/Enable.php b/core/Command/App/Enable.php index 7583375317..ae763e57a8 100644 --- a/core/Command/App/Enable.php +++ b/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 []; }