Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. public function accessRules()
  2. {
  3. return array(
  4. array('allow', // allow all users to perform 'index' and 'view' actions
  5. 'actions'=>array('index','view','update'),
  6. 'users'=>array('*'),
  7. ),
  8. array('allow', // allow admin user to perform 'admin' and 'delete' actions
  9. 'actions'=>array('admin','delete','dynamicUnitName'),
  10. 'users'=>array('admin'),
  11. ),
  12. array('allow', // allow authenticated user to perform 'create' and 'update' actions
  13. 'actions'=>array('create','update'),
  14. 'users'=>array('@'),
  15. ),
  16. array('deny', // deny all users
  17. 'users'=>array('*'),
  18. ),
  19. );
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement