Browse Source

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

pull/349/head
GinMu 9 years ago
parent
commit
dab067e71f
  1. 5
      ui/src/app/app.run.js

5
ui/src/app/app.run.js

@ -111,10 +111,7 @@ export default function AppRun($rootScope, $window, $injector, $location, $log,
} }
} }
} else { } else {
if (publicId && publicId.length > 0) { if (to.module === 'private') {
evt.preventDefault();
reloadUserFromPublicId();
} else if (to.module === 'private') {
evt.preventDefault(); evt.preventDefault();
if (to.url === '/home' || to.url === '/') { if (to.url === '/home' || to.url === '/') {
$state.go('login', params); $state.go('login', params);

Loading…
Cancel
Save