summaryrefslogtreecommitdiff
path: root/protected/modules/cms/controllers/DefaultController.php
diff options
context:
space:
mode:
authorastaf <astaf@proxy.ccwn.org.ccwn.org>2012-06-27 09:35:38 +0200
committerastaf <astaf@proxy.ccwn.org.ccwn.org>2012-06-27 09:35:38 +0200
commit6d5e8fa629c7453f4384bf95741fc3a93b1f472e (patch)
treed947afcb80f72b5ba17e1a95bcea2cc3d1c6c6bf /protected/modules/cms/controllers/DefaultController.php
parent409917a94dd5da56ffa1f2d8e07c8575df5609fc (diff)
parent4aa53ab46a0551698a85932bdb03aeba0502ce50 (diff)
Merge branch 'master' of ssh://proxy:9044/home/ccwn/git-repos/admin.astaf.de
Diffstat (limited to 'protected/modules/cms/controllers/DefaultController.php')
-rw-r--r--protected/modules/cms/controllers/DefaultController.php19
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
+ );
+ }
}