diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index 4e122ce..8463285 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -157,9 +157,16 @@ public function groupSubscribers() $this->Flash->set(_txt('pl.grouperlite.message.flash.group-detail-members-failed'), array('key' => 'error')); } + if(count($subscribers) < 1){ + $this->response->type('json'); + $this->response->statusCode(403); + //$this->response->body(json_encode(array('status' => 'ERROR', 'message' => 'NO ACCESS'))); + $this->response->send(); + $subscribers = ''; + } + $this->set(compact('subscribers')); + $this->set('_serialize', 'subscribers'); - $this->set(compact('subscribers')); - $this->set('_serialize', 'subscribers'); } /** diff --git a/View/Elements/Components/subscriberList.ctp b/View/Elements/Components/subscriberList.ctp index 6158726..4930d29 100644 --- a/View/Elements/Components/subscriberList.ctp +++ b/View/Elements/Components/subscriberList.ctp @@ -21,7 +21,7 @@
Loading...
There was an error retrieving the subscribers.
+You do not have access to view memberships.