I can not understand how use RBAC in Yii2.
I have 2 user type: admin and user. Type of user i store in DB.
create roles and use this role in controller.
check user role in code
Assign role with user after auth
Please, do not write links as answer.