Roles, MM Table and checkAccess

Hi everyone :slight_smile: Im new in yii 1.1. I’ve 3 tables: 1 is users, second is roles and the third one is MM table for roles and user (with yii migrate and Foreign Key between user and MMTable and between roles and users table)

in the function checkAccess in WebUser - I wanna check if the user has the roles … for example admin if yes than he can see admin view … What I dont know is: How can I check if the user has roles. PLease has someone a Idea ?