I’m having a bear of a time with the CheckAccess. It returns false, no matter what, every time. I can’t understand why. If i put in my ProjectController, accessRules
public function accessRules()
{
return array(
array('allow', // allow only authenticated users to perform 'index' and 'view' actions
'actions'=>array('index','view','create','update'),
'users'=>array('@'),
),
array('allow', // allow admin user to perform 'admin' and 'delete' actions
'actions'=>array('admin','delete','adduser'),
'users'=>array('owner'),
),
an owner can’t access admin, delete, etc. If I change that to ‘@’, then any authenticated user can perform admin and delete, but STILL are restricted from the adduser action. What’s goin’ on? I’m really stuck on this, I can’t figure out how it fits together. Relying on checkAccess is impossible, it’s always false and throws no errors. So no matter who is logged in, they can never see the Add User link on the Project page.
Anyone know the fix for this? I’m stumped.