mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 00:08:44 -03: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');
|
||||
$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');
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user