mikemclin / angular-acl

Role-based permissions for AngularJS
196 stars 49 forks source link

I always need to reload the page to get correct permission #31

Open senzacionale opened 6 years ago

senzacionale commented 6 years ago

I have small problem. In UI I use your code for permissions and I always need to reload page to get correct permission.

I set AclService.setAbilities(aclData);

and in angularJS UI I am checking this permission ng-show="can('VolumeChanges/All/VolumeHistory/Show')"

but works only when I refresh page?

Did I miss something?

mikemclin commented 6 years ago

Can you give me an example of when it is not working? Give me an example flow of when it works, and what the user does on the page, and then when it stops working requiring a page refresh.

bigdhri commented 5 years ago

I am encountering an issue as well with abilities, I can set them but can't seem to unset them. The only way I am seeing it unset is if I refresh the page. I added a role, then added abilities to that role. I log in with a different user, different roles, but the ability remains. I even tried flushing storage, and still the ability hangs around. Has anyone else encountered this issue?