checkAcess not validating

in the user controller i m checking the access if the user has the same id as the updating user id

but its not working

added this in main inside config:






used the dbschema from the Yii framework

added records in authitem:


name= updateOwnUser

 bizrule = return Yii::app()->user->id==$prams["user"]->id;


name= user

 bizrule = 

added this in authitemchild

parent= user

 child = updateOwnUser

added this in authassignment

itemname= user

 userid= 9

public function actionUpdate($id)



       $user = $this->loadModel($id);


	       echo 'inside the rules';


	       echo 'rules are failing';


done this in rules

array('allow', // allow authenticated user to perform 'create' and 'update' actions




but it is failing i don’t know what to do

figured out what was the problem it was the params variable i was using prams instead :slight_smile: