hi
look at this code in the controller:
return array(
array('allow', // allow all users to perform 'index' and 'view' actions
'actions'=>array('index','view','create','captcha' ),
'users'=>array('*'),
),
array('allow', // allow authenticated user to perform 'create' and 'update' actions
'actions'=>array('update'),
'users'=>array('@'),
),
array('allow', // allow admin user to perform 'admin' and 'delete' actions
'actions'=>array('admin','delete'),
'users'=>array('ali'),
),
array('deny', // deny all users
'users'=>array('*'),
),
);
i declared "ali" as admin user
now when a user log in, how can in know its admin or a typical user?
thanks for advice