and then, I write a line code Enforcer::addRoleForUser('bob', 'root'); for adding a new rule in the table rules.
The error grouping policy elements do not meet role definition displays again.
Or I got a no permission in Enforcer::enforce('bob', 'article', 'content', 'read').
I have searched in google and bing and stockoverflow. Finally I got a poor result.
I encountered a new problems. I want add a super role into rbac with domains model. So I modify the config file as below:
and then, I write a line code
Enforcer::addRoleForUser('bob', 'root');
for adding a new rule in the tablerules
.The error
grouping policy elements do not meet role definition
displays again. Or I got a no permission inEnforcer::enforce('bob', 'article', 'content', 'read')
.I have searched in google and bing and stockoverflow. Finally I got a poor result.
Please help me finish it. Thanks very much.