]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix access to groupManager 13850/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Wed, 20 Feb 2019 17:05:21 +0000 (18:05 +0100)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Wed, 20 Feb 2019 17:05:21 +0000 (18:05 +0100)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
core/Command/App/Enable.php

index 75833753170f756d09980d40c28283d3f49bd015..ae763e57a84ed357f0144d0e8c50fabbee8b0840 100644 (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 [];
        }