From 5d3a5a41d9aff5bc45230f36acc63975c6135ae8 Mon Sep 17 00:00:00 2001 From: Joe Rozek Date: Tue, 30 Dec 2014 14:29:50 -0700 Subject: [PATCH] authResolver doesn't resolve for public routes --- angularjs.userapp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs.userapp.js b/angularjs.userapp.js index 7de3811..587bb18 100755 --- a/angularjs.userapp.js +++ b/angularjs.userapp.js @@ -220,7 +220,7 @@ var userappModule = angular.module('UserApp', []); var state = states[this.self.name]; } - if (isPublic($route ? $route.current.$$route : state) == false) { + if (isPublic($route ? $route.current.$$route : state.data) == false) { var deferred = $q.defer(); try {