1
0
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:
Jared Tabor 2015-10-28 08:47:09 -07:00
parent 6c8597cf95
commit d2cefe6018

View File

@ -159,7 +159,9 @@ export default
that.expireSession('idle');
$location.url('/login');
}
if(Store('sessionTime')[$rootScope.current_user.id].loggedIn === false){
if(Store('sessionTime') &&
Store('sessionTime')[$rootScope.current_user.id] &&
Store('sessionTime')[$rootScope.current_user.id].loggedIn === false){
that.expireSession();
$location.url('/login');