Revision #11                                    has been created by  Gustavo                                    on Apr 26, 2013, 2:44:46 PM with the memo:
 Gustavo                                    on Apr 26, 2013, 2:44:46 PM with the memo:
                                
                                
                                    better documentation for example code                                
                                                                    « previous (#10)                                                                                            
                            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;[...]