diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index f480446..1a03e42 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -181,9 +181,16 @@ public function groupSubscribers() { $ajax = true; } + //Need to see if coming from AdHoc or from a WG (Working Group) + if (strpos($groupName, ':') === false ) { + $groupNameFormatted = 'ref:incommon-collab:' . $groupName . ':users'; + } else { + $groupNameFormatted = $groupName; + } + //Set initial $scope = [ - 'groupName' => 'ref:incommon-collab:' . $groupName . ':users' + 'groupName' => $groupNameFormatted ]; try { @@ -258,6 +265,7 @@ public function groupOwner() { } } + $this->set('grouperbaseurl', $this->Session->read('Plugin.Grouper.Api.grouperUrl')); $this->set('isuserowner', $this->GrouperGroup->isUserOwner($this->userId)); $this->set('isTemplateUser', $this->GrouperGroup->isTemplateUser($this->userId)); }