Get User Id Of The User Being Updated?

I am trying to set up a bizrule with the update action so a user can modify only his details. I am trying to attach a bizrule but i am unable to figure out how to get the user id of the account being updated?


return Yii::app()->user->id == ------;

How do i access the user id of the account being updated?

Can somebody explain to me


$params["post"]->authID

used in wiki. Where did we assign $param?

I came up with this solution.


return Yii::app()->user->id == $_GET['id'];

Is this OK or there is a better solution?