Simple RBAC

Comparing #7 with #8

Revision #8 was created by Stageline Stageline on Aug 24, 2012, 1:01:47 PM.

action->actions

Content

[...]
public function accessRules()
{
return array(
array('allow',
'action
s'=>array('admin'),
'roles'=>array('staff', 'devel'),
),
array('deny', // deny all users
'users'=>array('*'),
),
[...]