Difference between #5 and #7 of
Introducción al control de acceso basado en roles (RBAC)

Revision #7 has been created by Juan Calvo on Jan 11, 2011, 11:08:42 PM with the memo:

cambio en el código
« previous (#5) next (#8) »

Changes

Title unchanged

Introducción al control de acceso basado en roles (RBAC)

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

rbac, authentication, control, acceso, basado, roles, tareas, operaciones, auth, AuthManager, CDbAuthManager

Content changed

[...]
'actions'=>array('view'),
'users'=>array('@'),
),
array('allow',
'actions'=>array('create','update','admin','delete'),

 
'expression'=>'Yii::app()->user->checkAccess("adminFinanciero")', // or
 
// 'roles'=>array('adminFinanciero'),
 
 
),
array('deny',
'users'=>array('*'),
),
);
}
[...]
15 1
9 followers
Viewed: 74 610 times
Version: 1.1
Category: Tutorials
Written by: Juan Calvo
Last updated by: Juan Calvo
Created on: Dec 14, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history