silverbux / laravel-angular-admin

Laravel + Angularjs + Bootstrap + AdminLTE binded by Gulp workflow Admin Dashboard Boilerplate / Starter.
http://silverbux.github.io/laravel-angular-admin/
MIT License
925 stars 414 forks source link

Role problem #108

Closed ArturKami closed 6 years ago

ArturKami commented 6 years ago

HI First of all great job on laravel-angular-admin !

I want to create new user permission "dostep.monitorowanie" zrzut ekranu z 2017-09-03 10-58-43

Then i create user role "Monitorowanie User" with that permission (dostep.monitorowanie) zrzut ekranu z 2017-09-03 11-30-00

And then i add this role to my user admin@example.com zrzut ekranu z 2017-09-03 11-32-16 Then in nav-sidebar.component.html i whant to add menu element but only to users with user permission "dostep.monitorowanie"

<li class="treeview" ng-show="vm.can('dostep.monitorowanie')"> <a href="javascript:void(0)"> <i class="fa fa-dashboard"></i> <span>Monitorowanie</span> <i class="fa fa-angle-left pull-right"></i> </a> </li> zrzut ekranu z 2017-09-03 11-41-19

When i change permission to "manage.users" ewrything is fine zrzut ekranu z 2017-09-03 11-49-19

Can you help me please ?

ArturKami commented 6 years ago

OMG my bad. I have to logout because data is stored in localstorage and i think the localstorage is updated with user data when you loging in :)