fnakstad / angular-client-side-auth

One way to implement authentication/authorization in Angular applications
http://angular-client-side-auth.herokuapp.com/
MIT License
1.63k stars 346 forks source link

"data.access" in toState is always false #92

Closed ankitladhania closed 9 years ago

ankitladhania commented 9 years ago

I came up with this issue that no matter what is inside the data the value of data.access in toState is always returned false. The quick fix i came up with was if(!("data" in toState) || !("access" in toState.data)){

Does anyone face the same problem or its just me?

patrickrbc commented 9 years ago

There's already an issue and a pull request related to that.

ankitladhania commented 9 years ago

Yes and i have also submitted a pull request for it.