提交 5df61d42 编写于 作者: A Alvaro Lobato

[JENKINS-39741] - Redirect to login page after authorisation error when...

[JENKINS-39741] - Redirect to login page after authorisation error when checking connectivity to update center and handle any other error.
上级 21c1ee52
......@@ -244,7 +244,14 @@ exports.testConnectivity = function(siteId, handler) {
handler(true);
}
}
});
}, { error: function(xhr, textStatus, errorThrown) {
if (xhr.status === 403) {
exports.goTo('/login');
} else {
handler.call({ isError: true, errorMessage: errorThrown });
}
}
});
};
testConnectivity();
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册