diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-06-27 09:34:03 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-06-27 09:34:03 +0200 |
| commit | 4aa53ab46a0551698a85932bdb03aeba0502ce50 (patch) | |
| tree | 9ea69dc87000000942a1369530cc85b1621c8ed0 /protected/modules/cms/controllers/DefaultController.php | |
| parent | 9a6bcd0f0e19c005f5c062783f5fef7ccb287152 (diff) | |
CMS ins Adminmenu
Diffstat (limited to 'protected/modules/cms/controllers/DefaultController.php')
| -rw-r--r-- | protected/modules/cms/controllers/DefaultController.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/protected/modules/cms/controllers/DefaultController.php b/protected/modules/cms/controllers/DefaultController.php index b76d17b..e98d8cc 100644 --- a/protected/modules/cms/controllers/DefaultController.php +++ b/protected/modules/cms/controllers/DefaultController.php @@ -2,6 +2,19 @@ class DefaultController extends Controller { + public function accessRules()
+ {
+ return array(
+ array('deny',
+ 'actions'=>array('*'),
+ 'users'=>array('*'),
+ ),
+ array('allow',
+ 'actions'=>array('*'),
+ 'roles'=>array('admin'),
+ )
+ );
+ } public function beforeAction($action) { $this->layout = Yii::app()->controller->module->layout; @@ -16,5 +29,11 @@ class DefaultController extends Controller { $this->render('admin'); } + public function filters()
+ {
+ return array(
+ 'accessControl', // perform access control for CRUD operations
+ );
+ } } |
