Closed mikk150 closed 1 year ago
viewPost
user
yii\rbac\DbManager
$defaultRoles => ["user"]
it will tell no, you shall not view posts
since user has permission to view post, it should say yes
This is problem specifically on DbManager as PhpManager does not have this problem
DbManager
PhpManager
Turns out it was issue on my code... I tried to add test to yii2 framework, and all tests passed.. so it had to be my code
What steps will reproduce the problem?
viewPost
user
viewPost
to roleuser
yii\rbac\DbManager
with$defaultRoles => ["user"]
What is the expected result?
it will tell no, you shall not view posts
What do you get instead?
since user has permission to view post, it should say yes
Additional info