Changes
Title
unchanged
Simple authorization system
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
auth, authorization, security
Content
changed
[...]
In your components folder ( protected/components ) create a 'WebUser.php' file and a class like this:
```php
/**
* @property boolean $isAdmin
* @property boolean $isSuperAdmin
* @property User $user
*/
class WebUser extends CWebUser{
/**
* cache for the logged in User active record
* @return User
*/
private $_user;[...]