This commit is contained in:
Barış Soner Uşaklı
2019-04-26 12:59:01 -04:00
parent f86d74d8b9
commit fe6d64ccbc

View File

@@ -117,7 +117,7 @@ helpers.notAllowed = function (req, res, error) {
if (err) {
return winston.error(err);
}
if (req.loggedIn) {
if (req.loggedIn || req.uid === -1) {
if (res.locals.isAPI) {
res.status(403).json({
path: req.path.replace(/^\/api/, ''),