mdmsoft / yii2-admin

Auth manager for Yii2 (RBAC Manager)
GNU General Public License v3.0
1.16k stars 574 forks source link

Routes #283

Open pdempsey opened 8 years ago

pdempsey commented 8 years ago

Could you please document all the steps in using routes as assignments (or however it works). I have the extension installed on the advanced template version of Yii2. I did the install and migrate of the standard user tables I can assign roles to users, but nowhere in the UI's can I assign permissions to a role. Also I can create a route, but it does nothing, can't be assigned etc.

I would think that the hierarchy of the rbac system would allow you to assign a route to a role and permissions to a role, and that role to a user. I can add roles and permissions to a user with these ui's but not in the correct hierarchy.

mdmunir commented 8 years ago

Also I can create a route, but it does nothing, can't be assigned etc.

Are you sure? You can create route and assign it to role.

pdempsey commented 8 years ago

My bad. I reinstalled the package. I now see under roles/view (not update) the UI for assigning routes to roles. I added the route for /admin/* to the route for admin, and took the route out of the "as access" section of the config. It now allows user with role of admin access to those routes, but not others.

pdempsey commented 8 years ago

Thanks.. great extension. save me a ton of work to build this out.