Guest User

Untitled

a guest
May 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. $this->_groupsModel = new GroupsModel();
  2.  
  3. parent::init();
  4.  
  5.  
  6.  
  7. if (is_null($this->me)) {
  8.  
  9. $this->_addMessage('You must be logged in to do that.');
  10.  
  11. $this->_redirector->gotoUrl('/');
  12.  
  13. } else {
  14. $this->_userMemberships = $this->_groupsModel->getGroupMembers(array('organization_id'), $this->me->user_id)->toArray();
  15. }
Add Comment
Please, Sign In to add comment