From f327b0226429cbb32ec0e045fcafd207370e7ef5 Mon Sep 17 00:00:00 2001 From: Axel Stohn Date: Fri, 19 May 2023 06:28:57 -0700 Subject: [PATCH] Adding check to see if user logged in --- Controller/GrouperGroupsController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index b024ef6..c889e60 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -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