diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index 5aedb0f..871a95b 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -111,6 +111,8 @@ public function index() { public function groupInfo() { $name = urldecode($this->request->query['groupname']); + $this->set('isuserowner', $this->GrouperGroup->isUserOwner($this->userId)); + $this->set('title', _txt('pl.grouperlite.title.groupinfo')); try { @@ -123,6 +125,16 @@ public function groupInfo() { $this->set('groupergroupsdetail', array()); $this->Flash->set(_txt('pl.grouperlite.message.flash.info-group-failed'), array('key' => 'error')); } + + try { + $groupMembers = $this->membersInGroup(); + $this->set('groupergroupssubscribers', $groupMembers); + } catch (Exception $e) { + CakeLog::write('error', __METHOD__ . ': ' . var_export($e->getMessage(), true)); + + $this->set('groupergroupssubscribers', array()); + $this->Flash->set(_txt('pl.grouperlite.message.flash.group-detail-members-failed'), array('key' => 'error')); + } } /** @@ -138,16 +150,20 @@ public function membersInGroup() { 'groupName' => $groupName ]; + $details = []; + try { $details = $this->GrouperGroup->membersInGroup($scope); - $this->set('membersingroup', $details); + // $this->set('membersingroup', $details); } catch (Exception $e) { CakeLog::write('error', __METHOD__ . ': ' . var_export($e->getMessage(), true)); - $this->set('membersingroup', array()); + // $this->set('membersingroup', array()); $this->Flash->set(_txt('pl.grouperlite.message.flash.group-detail-members-failed'), array('key' => 'error')); } + + return $details; } diff --git a/View/Elements/Components/groupattributes.ctp b/View/Elements/Components/groupattributes.ctp index 11f7082..dfb6978 100644 --- a/View/Elements/Components/groupattributes.ctp +++ b/View/Elements/Components/groupattributes.ctp @@ -19,4 +19,9 @@ - \ No newline at end of file + + +
No attributes defined.
+