I want to make the authenticated users can access my
admin(module)/sysMessage(controller)/index(action)
My accessRules is as below:
public function accessRules()
{
return array(
array('allow', // allow only users in the 'admin' role access to our actions
'actions'=>array('index','view', 'create', 'update', 'admin', 'delete'),
'roles'=>array('admin'),
),
array('allow',
'actions'=>array('index','view'),
'roles'=>array('@'),
),
array('deny', // deny all users
'users'=>array('*'),
),
);
}
But, when the authenticated users tried to access my
admin(module)/sysMessage(controller)/index(action), they got this message:
“Error 403 You are not authorized to perform this action.”
Could you tell me why?