Skip to content

Commit

Permalink
Adding check to see if user logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Stohn authored and Axel Stohn committed May 19, 2023
1 parent 716989b commit f327b02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public function beforeFilter()
{
parent::beforeFilter();

if($this->Session->read('Auth.User.username') !== null || $this->Session->read('Auth.User.username') == ''){
$this->Auth->unauthorizedRedirect = "/";
}

$this->Security->unlockedActions = array('removeSubscriber', 'addSubscriber');

//Need to find which plugin instance choosing, if more than one from cm_co_grouper_lites
Expand Down

0 comments on commit f327b02

Please sign in to comment.