Difference between #10 and #11 of
Simple authorization system

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;
[...]
14 0
17 followers
Viewed: 45 705 times
Version: 1.1
Category: How-tos
Written by: Gustavo
Last updated by: Gustavo
Created on: Nov 24, 2011
Last updated: 11 years ago
Update Article

Revisions

View all history