The default access rules of a user controller is this to give permissions to certain users.
array('allow', // allow authenticated user to perform 'create' and 'update' actions
'actions'=>array('create','update'),
'users'=>array('@'),
),
But what If I have extended Webuser and has and isAdmin function?
May someone please tell me why it won’t work?
array('allow', // allow admin user to perform 'admin' and 'delete' actions
'actions'=>array('admin','delete','create','update','view','index'),
'users'=> array('$user->isAdmin'),
),