Well there different extensions are available here for RBAC.But as i have read your comment, it seems that according to your need you have to create your extension which work like this in your application background.
So, i hope if you have gone through with Authentication and Authorization Article for Yii and you understand completely about it then i think you can create some plugin or code for this.
To get some idea about Yii permission related extension i will recommend you to study Yii Rights Extension.