Hi guys,
Is it possible to use a PHP function in an expression?
Something like:
array('allow',
'actions'=>array('create','update','delete'),
'expression'=>'(strpos(Yii::app()->user->userAccess["code"],"s")>-1)',
),
Basically it should check if "s" exist and only allow access when it does.
Your comments will be appreciated.