Closed jyotman closed 7 years ago
Although, there's no point doing that; it's still valid (currently).
But I see your concern. This might even lead to security issues on the host application, if not used with caution. Besides, I can't think of any true, valid use of cross-inheritance.
I'll consider this in the next version (will be released in a couple of days). Thanks.
Cross-role inheritance is no more allowed in v2.0.0+
Should cross inheritance be allowed?
For example I have 2 roles -
user
andadmin
.Now if I write -
Then from this moment onward, both the roles have become exactly similar. All the permissions given to
admin
role would apply touser
role and vice-versa. Then what's the point of having 2 different roles?Forgive if I'm missing something. And thanks for this really useful module.