Closed roberttolton closed 8 years ago
Are you using newest version (v2.1.2)? Because I solved problems with redirections there.
Yep, I'm using v2.1.2
I'll try to take a look at the evening where problem might be...
Ok it's now redirecting me back to auth if I'm not logged in, but after I click sign in in my app, I don't get redirected to the first view, even though it's the value of "toState":
Event On: $stateChangeStart
app.js:170 presentation.list
So the $state.go( "presentation.list" ); at the bottom of my $stateChangeStart isn't working, or it's being blocked?
So can you prep some plunkr to reproduce the problem @fuelintegrated ? That would ease me lot time.
Hmm, I'm not sure I can replicate this in a Plunkr since it authorises against a Laravel 5 API, would you want access to the repo?
If that is possible i can try to give some help. I'm almost sure you simply improperly manage your permissions.
Do you have an email so I can send you a .zip file? I've had to continue work, and currently I've got this other package working (it says it was inspired by angular-permission): https://github.com/ryandrewjohnson/ui-router.grant
Though it's not as fully featured.
@fuelintegrated I send it to you through contact form on your company site. So I'm closing this issue.
Hi, so, I can't get this to work. Here's my app file:
I get no errors, but visiting any state other than auth doesn't redirect me back to auth, the view and controller are successfully run even though I don't have any of the required roles..?