Difference between #10 and #11 of
Simple authorization system

Revision #11 has been created by 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;
[...]
14 0
17 followers
Viewed: 45 710 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