summaryrefslogtreecommitdiffstats
path: root/settings/controller/groupscontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/controller/groupscontroller.php')
-rw-r--r--settings/controller/groupscontroller.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/settings/controller/groupscontroller.php b/settings/controller/groupscontroller.php
index 218a9c0d51c..93dcc7358a9 100644
--- a/settings/controller/groupscontroller.php
+++ b/settings/controller/groupscontroller.php
@@ -77,8 +77,12 @@ class GroupsController extends Controller {
public function index($pattern = '', $filterGroups = false, $sortGroups = MetaData::SORT_USERCOUNT) {
$groupPattern = $filterGroups ? $pattern : '';
- $groupsInfo = new MetaData($this->userSession->getUser()->getUID(),
- $this->isAdmin, $this->groupManager);
+ $groupsInfo = new MetaData(
+ $this->userSession->getUser()->getUID(),
+ $this->isAdmin,
+ $this->groupManager,
+ $this->userSession
+ );
$groupsInfo->setSorting($sortGroups);
list($adminGroups, $groups) = $groupsInfo->get($groupPattern, $pattern);