mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
closed #2087
This commit is contained in:
@@ -32,10 +32,11 @@ $(document).ready(function() {
|
||||
if (data) {
|
||||
if (data.status === 404) {
|
||||
return ajaxify.go('404');
|
||||
} else if (data.status === 403) {
|
||||
} else if (data.status === 401) {
|
||||
app.alertError('[[global:please_log_in]]');
|
||||
app.previousUrl = url;
|
||||
return ajaxify.go('login');
|
||||
} else if (data.statuc === 403) {
|
||||
app.alertError('[[error:no-privileges]]');
|
||||
} else if (data.status === 302) {
|
||||
return ajaxify.go(data.responseJSON.slice(1), callback, quiet);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user