Hi,
I have a question on access rules. I have the following the access rules:
public function accessRules() {
return array(
array(
// Allow authenticated user to perform 'index' and 'view' actions
allow',
'actions' => array('index', 'view'),
'users' => array('@'),
),
array(
// Allow admin user to perform 'admin', 'create', 'update' and 'delete' actions
'allow',
'actions' => array('admin', 'create', 'update', 'delete'),
'users' => array('admin'),
),
array(
// Deny all users
'deny',
'users' => array('*'),
),
);
}
I need to add a link ‘create’ only user ‘admin’. Is there any function to check if the user logged in can access the action ‘create’?