Closed samarthagarwal closed 8 years ago
Did you remove all of the roles for the authenticated user when they logged out using AclService.flushRoles()
?
It sounds like you are logging a user out, but never notifying the AclService that the roles need to be flushed.
Closing due to inactivity. Please reopen if you're still having a problem.
Hi. I am using AngularUIRouter. I assign a role to a user based on the user type, say I have two types X and Y. Consider two users, A and B, of type X and Y respectively. Now when user A logs in, he is properly assigned the role X and if I try
AclService.can('somethingThatOnlyXCanDo')
, I get 'true
'. Now when A logs out and B logs in,AclService.can('somethingThatOnlyXCanDo')
still gives metrue
, when It should actually befalse
. I have to hard refresh the app to get the correct value.Is there an issue with Angular UI Router or am I forgetting something?