Commit dab067e71fbca5f04666ed0cc17f7691772c91f3

Authored by GinMu
1 parent 9734f45e

Fixed the issue when the user is not authenticated and the publicId is not empty

Showing 1 changed file with 1 additions and 4 deletions
... ... @@ -111,10 +111,7 @@ export default function AppRun($rootScope, $window, $injector, $location, $log,
111 111 }
112 112 }
113 113 } else {
114   - if (publicId && publicId.length > 0) {
115   - evt.preventDefault();
116   - reloadUserFromPublicId();
117   - } else if (to.module === 'private') {
  114 + if (to.module === 'private') {
118 115 evt.preventDefault();
119 116 if (to.url === '/home' || to.url === '/') {
120 117 $state.go('login', params);
... ...