Expression in access filter not working ?

I'm curious why's that not working:



$user=$this->loaduser(Yii::app()->user->id);


		


return array(


	array('allow',


		'actions'=>array('login'),


		'users'=>array('*')


	),


	array('allow',


		'actions'=>array('auction'),


		'users'=>array('@'),


		'exp​ression'=>array('intval($_GET["id"])=='.$user->auction_id)


	),


	array('deny',


		'users'=>array('*')


	),


);


If I print out this exp​ression it looks that way:



intval($_GET["id"])==2


while $_GET['id'] is 2 of course.

Read over here

so the exp​ression should be string but it cannot be string, that's why it is not working, am I right?

Quote

so the exp​ression should be string but it cannot be string, that's why it is not working, am I right?

The docs say it must be a string, but the internal workings of yii 1.0.3 treat accessRules' exp​ression filter as an array. This has been fixed in the trunk, just check out the latest code from the repo.