NotLogged exception is now 403

issue5415
review17161002
This commit is contained in:
C?dric Krier 2016-03-21 23:40:17 +01:00
parent 048b3c4986
commit e4d55bbd55

View file

@ -83,7 +83,7 @@
'glyphicon-alert').always(dfd.reject);
return;
}
} else if (data.error[0] == 'NotLogged') {
} else if (data.error[0].startswith('403')) {
//Try to relog
Sao.Session.renew(session).then(function() {
Sao.rpc(args, session).then(dfd.resolve, dfd.reject);