Authorization in hierarchical structure

Hello

I’m developing an application in Yii, and I’m now trying to get the authorizations working. I’m trying to understand the Yii authorization methods but I can’t apply it to my own situation.

The case is that there is a hierarchical structure in my application (buildings, levels, rooms), and users should have a role in that structure. For example, user X has a role Y for level/room Z. So far I only found a way to apply roles to users without a third parameter.

Question: Is this by default possible with Yii, without lots of bizRules?

Did you end up finding a solution?