Skip to content

Commit

Permalink
adding error message for no member viewing
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Stohn authored and Axel Stohn committed Oct 22, 2022
1 parent f52bca0 commit c1611d1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit c1611d1

Please sign in to comment.