diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index a30fac3..ee63070 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'); } /**