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