Fixed the issue when the user is not authenticated and the publicId is not empty
This commit is contained in:
parent
9734f45ec8
commit
dab067e71f
@ -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…
x
Reference in New Issue
Block a user