July 1, 2016, 6:56am
Am using RBAC for the user role. In my auth_assignment table, I have Manager and SuperAdmin in the item_name7014
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:
Please help me out.
July 1, 2016, 7:32am
July 2, 2016, 3:31pm
Then you need to pass this manager’s ID to the query criteria. It has nothing to do with RBAC.
July 4, 2016, 7:46am
Please how do I go about this
July 4, 2016, 11:23am
$post = Post::findOne(['id' => $id, 'created_by' => Yii:$app->user->ID]);