module yii-rights and business rules

i want to use business rules in module yii-rights, so i create such rule


return yii::app()->user->id==$params['record_id'];

but how can i pass parameter $params into this rule?

if i use manual cheching i can use such code


    $params=array('record_id'=>$id);

    if(Yii::app()->user->checkAccess('updateOwnPost',$params))

    {

        // update post

    } 

but how can i do such in module?

did you ever have any luck with this?

I’ve been trying something similar but my $params argument doesn’t seem to be actually passed through into the business rule in Rights

bump