Skip to content

Instantly share code, notes, and snippets.

@nerder
Created June 9, 2015 15:13
Show Gist options
  • Save nerder/31666513d9e3f5641908 to your computer and use it in GitHub Desktop.
Save nerder/31666513d9e3f5641908 to your computer and use it in GitHub Desktop.
if($rootScope.securityRole){
console.log($rootScope.securityRole);
console.log(authService.isUrlAccessibleForUser(next.url));
if(authService.isUrlAccessibleForUser(next.url)){
$location.path('/authError');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment