Yii2 RBAC using yii2-admin module

Could you describe me how to use yii2-admin module please?

I installed it.

I added 2 roles admin and user and routes.

I established relations among roles and routes;

I created rule and defined it.

I associated rules with roles;

I assigned admin role to admin user.

Question:

How to allow some routes for user and all routes for admin? As I already said routes were added in db but it doesn’t work.

go to Roles menu

than, assign " /* " route to Admin role

and

for User role…

select route to want to you assign to user role

for example user role can access login, error, sign up page

so, assign these routes…

/site/error

/site/login

/site/signUp as per your controller/action name…

:D :)