Anyone know how do this for different users? Not nessacarily the logged in user without having to query the DB manually to get the role name.
Mind you I could always just write the query once in the user model and wrap it in a method, that would not be too difficult. However still open to ideas everyone.
If you use the yii right extension, you just need create a function called getUserRoles() in the class RWebUser that extends from CWebUser, this class is under the path: