Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function accessRules()
- {
- return array(
- array('allow', // only acccessable by admins
- //'users'=>array('*'), 'actions'=>array('admin','index','update', 'create', 'delete'),
- 'expression '=> '$user->isAdmin()',
- ),
Add Comment
Please, Sign In to add comment