What looks like you are missing the data in the relevant tables for RBAC. You should read the GUIDE about the advance RBAC and how you should go about building the authorization data i.e
- defining roles and permissions;
- establishing relations among roles and permissions;
- defining rules;
- associating rules with roles and permissions;
- assigning roles to users.
So to get it working verify if you have a role defined in the table auth_item with the name
admin and type 1, then auth_assignment
should have the user_id
of the admin user (chef) you added in the user
table, against the role defined i.e admin.
See the images from one of my application where the admin
role is defined and one route that needs to be defined and checked later using the Yii::$app->user->can()
auth_item

auth_assignment

**User **

If you implement the advance RBAC according to the guide I don't think you need to specify any admin under the module config, as you would then check the access to any action,module or controller via Yii::$app->user->can($route)
where $route
is defined in the auth_item
with type 2.
Note there is auth_item_child
table too which is used when your application expands and you have multiple roles defined, mainly it is the table for storing authorization item hierarchy. you can read about it in the link mentioned on top.