From aaf8275e5ff92504357c5f3167a3f256d0d393ad Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Sun, 27 Mar 2011 16:44:55 +0200 Subject: Rollenverwaltung User Module --- .../modules/user/controllers/ConfigController.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'application/modules/user/controllers/ConfigController.php') diff --git a/application/modules/user/controllers/ConfigController.php b/application/modules/user/controllers/ConfigController.php index ffc5387..2b5f095 100644 --- a/application/modules/user/controllers/ConfigController.php +++ b/application/modules/user/controllers/ConfigController.php @@ -3,15 +3,19 @@ class User_ConfigController extends Zend_Controller_Action { - public function init() - { - /* Initialize action controller here */ - } + public function init() + { + if (Zend_Auth::getInstance()->hasIdentity()) { - public function indexAction() - { - // action body - } + } else { + $this->_helper->redirector('login', 'auth'); + } + } + + public function indexAction() + { + // action body + } } -- cgit v1.2.3-55-g7522