diff options
| author | astaf <astaf@proxy.ccwn.org.ccwn.org> | 2012-06-27 09:35:38 +0200 |
|---|---|---|
| committer | astaf <astaf@proxy.ccwn.org.ccwn.org> | 2012-06-27 09:35:38 +0200 |
| commit | 6d5e8fa629c7453f4384bf95741fc3a93b1f472e (patch) | |
| tree | d947afcb80f72b5ba17e1a95bcea2cc3d1c6c6bf /protected/modules/cms/controllers/SitecontentController.php | |
| parent | 409917a94dd5da56ffa1f2d8e07c8575df5609fc (diff) | |
| parent | 4aa53ab46a0551698a85932bdb03aeba0502ce50 (diff) | |
Merge branch 'master' of ssh://proxy:9044/home/ccwn/git-repos/admin.astaf.de
Diffstat (limited to 'protected/modules/cms/controllers/SitecontentController.php')
| -rw-r--r-- | protected/modules/cms/controllers/SitecontentController.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/protected/modules/cms/controllers/SitecontentController.php b/protected/modules/cms/controllers/SitecontentController.php index 72dde78..448d6a6 100644 --- a/protected/modules/cms/controllers/SitecontentController.php +++ b/protected/modules/cms/controllers/SitecontentController.php @@ -14,14 +14,13 @@ class SitecontentController extends Controller public function accessRules() { return array( - array('deny',
- 'actions'=>array('*'),
+ array('allow', // allow admin user to perform 'admin' and 'delete' actions + 'actions'=>array('admin','index','create','view','update','delete'), + 'users'=>array('admin'), + ), + array('deny', // deny all users 'users'=>array('*'), ), - array('allow',
- 'actions'=>array('*'),
- 'roles'=>array('admin'),
- )
); } public function actionSearch() @@ -46,7 +45,9 @@ class SitecontentController extends Controller public function filters() { - return array('accessControl'); + return array( + 'accessControl', // perform access control for CRUD operations + ); } public function actionView() |
