mirror of https://github.com/MISP/MISP
fix: [ui] Show proper error message for ForbiddenException again
parent
82e70fee12
commit
8ab828bf45
|
@ -1619,10 +1619,14 @@ function getPopup(id, context, target, admin, popupType) {
|
|||
$(popupType).html(data);
|
||||
openPopup(popupType, false);
|
||||
},
|
||||
error:function() {
|
||||
error:function(xhr) {
|
||||
$(".loading").hide();
|
||||
$("#gray_out").fadeOut();
|
||||
showMessage('fail', 'Something went wrong - the queried function returned an exception. Contact your administrator for further details (the exception has been logged).');
|
||||
if (xhr.status === 403) {
|
||||
showMessage('fail', 'Not allowed.');
|
||||
} else {
|
||||
showMessage('fail', 'Something went wrong - the queried function returned an exception. Contact your administrator for further details (the exception has been logged).');
|
||||
}
|
||||
},
|
||||
url: url
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue