This commit is contained in:
barisusakli
2014-05-15 20:49:47 -04:00
parent 033364a2a9
commit b1aae05a08
19 changed files with 166 additions and 224 deletions

View File

@@ -147,7 +147,7 @@ topicsController.get = function(req, res, next) {
}
], function (err, data) {
if (err) {
if (err.message === 'not-enough-privileges') {
if (err.message === '[[error:no-privileges]]') {
return res.locals.isAPI ? res.json(403, err.message) : res.redirect('403');
} else {
return res.locals.isAPI ? res.json(404, 'not-found') : res.redirect('404');