Is there a way to restrict view based on user's input in model in the controller?
I want to hide/show their own page based on their own choice. 
profile\_hide\_show with values of 'p'=>public, 'f'=>friends, and 'm'=>me

```
public function accessRules()
{
    return array(
        array('allow',
            'actions'=>array('view'),
            'users'=>array('?'), //?based on user's selection in model,
        ),
    );
}

```