folumike
(Folumikeidowu)
July 1, 2016, 6:56am
1
Hi,
Am using RBAC for the user role. In my auth_assignment table, I have Manager and SuperAdmin in the item_name7014
auth_assignment.PNG
The issue is that when I log in as manager, it suppose to display data for that manager alone, building that belong to that manager alone. But its displaying all the managers and buildings. See the tables below:
7015
auth_item_child.PNG
7016
manager.PNG
7017
application.PNG
Please help me out.
patrickm
(Yiiframework)
July 1, 2016, 7:32am
2
samdark
(Alexander Makarov)
July 2, 2016, 3:31pm
3
Then you need to pass this manager’s ID to the query criteria. It has nothing to do with RBAC.
folumike
(Folumikeidowu)
July 4, 2016, 7:46am
4
Please how do I go about this
samdark
(Alexander Makarov)
July 4, 2016, 11:23am
5
$post = Post::findOne(['id' => $id, 'created_by' => Yii:$app->user->ID]);