Difference between #6 and #7 of
How to setup RBAC with a php file

Revision #7 has been created by SpikyJT on Nov 16, 2010, 8:31:45 PM with the memo:

corrected 2 syntax errors in auth.php array code: } on 3rd last line should have been ). Should have finished with ; not ,
« previous (#6) next (#8) »

Changes

Title unchanged

How to setup RBAC with a php file

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

Authentication

Content changed

[...]
array (
'type'=>CAuthItem::TYPE_ROLE,
'description'=>'Can read a post and post a comment',
'children'=>array(
'reader','commentor',
}), ), ),;
```

The above code declares 3 different types of roles:

1 - reader - this type of role can only read a post but not post any comments
[...]
24 4
21 followers
Viewed: 68 060 times
Version: 1.1
Category: How-tos
Written by: bettor
Last updated by: Stageline
Created on: Feb 7, 2010
Last updated: 5 years ago
Update Article

Revisions

View all history