Well there does not seem to be much a response when the Authorisation topic comes up? Who has got experience with this?

I have a couple of questions …

How can I get the role name i.e. Standard, Admin, SuperAdmin, Writer, Editor etc to display in the view? Do I need to query the DB manually? Or is there a method for this?

When I delete a user record will it delete the AuthAssignments and Items automatically or do I have do that manually?


Are people not answering these questions because they are not possible in Yii or is it because no one has any experience with Yii Authorisation?

You can manage roles with Yii::app()->user->checkAccess(‘roleName’);, you don’t need to write query.

All methods you need are defined in the class CAuthManager, that can be accessed with Yii::app()->authManager.