I have been having this weird experience with my Yii app. I created an account '**admin**' and this admin created an additional admin account called '**sample**'. Now **sample**, is successfully created and added to the authassignment table as an admin. Here is proof that user 204 is an admin. 

![enter image description here](https://i.stack.imgur.com/HPPY2.png)

Checkuser access also proves to be true that the **sample** account is an admin. But somehow, accessing the admin functions of a certain controller returns error 403 when logged in as **sample** but the other admin account **admin**, user 0 access it fine. Here's the access rule of the controller.

```
public function accessRules()
{
    return array(
        array('allow',  // allow all users to perform 'index' and 'view' actions
            'actions'=>array('index','view','update'),
            'users'=>array('*'),
        ),
        array('allow', // allow admin user to perform 'admin' and 'delete' actions
            'actions'=>array('admin','delete','dynamicUnitName'),
            'users'=>array('admin'),
        ),
        array('allow', // allow authenticated user to perform 'create' and 'update' actions
            'actions'=>array('create','update'),
            'users'=>array('@'),
        ),
        array('deny',  // deny all users
            'users'=>array('*'),
        ),
    );
}

```

What is wrong with my app and why is it acting this way?