Extend yii rights module functionality

I have used Yii rights module for user management in my application. Its works awasome… But i want to extend its functionality more. I need to assign different different role to single user for different different company.so how can i achive this??

In my application flow, first of all user login into my application and select perticular company which is assgin by administrator to that user. And single user have multiple role according belonging to different different company.

So please give me any idea to check user role as well as their assign company.

Thanks in advance,


did you found a solution, i have the same situation. Thanks