mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-23 03:29:57 +02:00
Merge pull request #2192 from Fusselwurm/patch-1
fix 403 handling in ajaxify.js
This commit is contained in:
@@ -35,7 +35,7 @@ $(document).ready(function() {
|
||||
} else if (data.status === 401) {
|
||||
app.alertError('[[global:please_log_in]]');
|
||||
return ajaxify.go('login');
|
||||
} else if (data.statuc === 403) {
|
||||
} else if (data.status === 403) {
|
||||
app.alertError('[[error:no-privileges]]');
|
||||
} else if (data.status === 302) {
|
||||
return ajaxify.go(data.responseJSON.slice(1), callback, quiet);
|
||||
@@ -309,4 +309,4 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user