angular-acl icon indicating copy to clipboard operation
angular-acl copied to clipboard

I always need to reload the page to get correct permission

Open senzacionale opened this issue 6 years ago • 2 comments

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?

senzacionale avatar Mar 16 '18 08:03 senzacionale

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.

mikemclin avatar Mar 16 '18 12:03 mikemclin

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?

bigdhri avatar Sep 19 '18 13:09 bigdhri