Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Rbac Using Hierarchical Scheme

$
0
0
Hi,

I today found the tutorial on RBAC using Yii. Great tutorial, looks like the thing I need for my application.

I now have a question: I have a hierarchical structure of districts (using a nested set). Now I want to use the RBAC scheme, but I dont want to give these roles to a user generally, but instead coupled with the districts.

For example, I want to give User1 the Roles Role1 and Role2 for District1 and all its sub-districts. Or User2 the Role Role3 for District2 (but not its sub-districts).

Later I would like to check whether the current user has a specific role for a given district. Is that possible with Yiis RBAC System?

Best regards
Daniel

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>