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[...]