mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 05:45:02 -02:30
adding null pointer check
for timer factory when a user logs out from another tab
This commit is contained in:
@@ -159,9 +159,11 @@ export default
|
|||||||
that.expireSession('idle');
|
that.expireSession('idle');
|
||||||
$location.url('/login');
|
$location.url('/login');
|
||||||
}
|
}
|
||||||
if(Store('sessionTime')[$rootScope.current_user.id].loggedIn === false){
|
if(Store('sessionTime') &&
|
||||||
that.expireSession();
|
Store('sessionTime')[$rootScope.current_user.id] &&
|
||||||
$location.url('/login');
|
Store('sessionTime')[$rootScope.current_user.id].loggedIn === false){
|
||||||
|
that.expireSession();
|
||||||
|
$location.url('/login');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user