CRUD Matrix Permission

My intention was to use RBAC to manage which roles can do certain actions (permissions).

Now, the requirements change and I need to do CRUD matrix permission style (similar to this screenshot 6730

2015-09-30_1512.png
)

I can see that I can use RBAC to do this, but there arent any role inheritances at all. It will only role - permissions. There wont be [parent-role - child-role - permissions].

My questions are

  • is RBAC still the best way to go ?

  • are there existing components that do what I need and works nicely with Yii2 ?

  • any recommendations to make this goes smooth ?

You get a wrong notion. You can add a role as a child of other role.

http://www.yiiframework.com/doc-2.0/guide-security-authorization.html#rbac

In the example of the guiide, "admin" role has "author" role as its child.