Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function accessRules()
- {
- return array(
- array('allow', // allow all users to perform 'index' and 'view' actions
- 'actions'=>array('index','view','update'),
- 'users'=>array('*'),
- ),
- array('allow', // allow admin user to perform 'admin' and 'delete' actions
- 'actions'=>array('admin','delete','dynamicUnitName'),
- 'users'=>array('admin'),
- ),
- array('allow', // allow authenticated user to perform 'create' and 'update' actions
- 'actions'=>array('create','update'),
- 'users'=>array('@'),
- ),
- array('deny', // deny all users
- 'users'=>array('*'),
- ),
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement