mirror of https://github.com/apache/archiva.git
take of karma or logged user when 403: session ended
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1397492 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1ac1207ab9
commit
a17c4e0906
|
@ -35,6 +35,10 @@ function() {
|
||||||
removeMediumSpinnerImg("#main-content");
|
removeMediumSpinnerImg("#main-content");
|
||||||
clearUserMessages();
|
clearUserMessages();
|
||||||
displayErrorMessage($.i18n.prop('authz.karma.needed'));
|
displayErrorMessage($.i18n.prop('authz.karma.needed'));
|
||||||
|
|
||||||
|
userLogged(function(user){
|
||||||
|
userLoggedCallbackFn(user);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
500: function(data){
|
500: function(data){
|
||||||
$.log("error 500:"+data.responseText);
|
$.log("error 500:"+data.responseText);
|
||||||
|
@ -42,8 +46,6 @@ function() {
|
||||||
removeMediumSpinnerImg("#main-content");
|
removeMediumSpinnerImg("#main-content");
|
||||||
clearUserMessages();
|
clearUserMessages();
|
||||||
displayRestError($.parseJSON(data.responseText));
|
displayRestError($.parseJSON(data.responseText));
|
||||||
//$("#main-content" ).html("");
|
|
||||||
//displayErrorMessage($.i18n.prop('error.500'));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -44,8 +44,9 @@ define("redback",["jquery","utils","jquery.validate","jquery.json","knockout",
|
||||||
type: "GET",
|
type: "GET",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
userLogged = data;
|
userLogged = data;
|
||||||
|
$.log("userLogged:"+userLogged);
|
||||||
if (successFn){
|
if (successFn){
|
||||||
successFn(userLogged == false ? null : jQuery.parseJSON($.cookie('redback_login')));
|
successFn(userLogged ? jQuery.parseJSON($.cookie('redback_login')):null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue