|
@@ -76,7 +76,8 @@ luticate.config(['$stateProvider', '$urlRouterProvider', '$httpProvider',
|
76
|
76
|
}]);
|
77
|
77
|
|
78
|
78
|
}])
|
79
|
|
- .run(['$rootScope', '$state',function ($rootScope, $state) {
|
|
79
|
+ .run(['$rootScope', '$state', 'luticateAuthUsers',function ($rootScope, $state, luticateAuthUsers) {
|
|
80
|
+ luticateAuthUsers.loadPermissions(null);
|
80
|
81
|
$rootScope.$on('$stateChangeError', function (e, curr, prev) {
|
81
|
82
|
$state.go('login');
|
82
|
83
|
});
|