v1.18.x
Barış Soner Uşaklı 6 years ago
parent f86d74d8b9
commit fe6d64ccbc

@ -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/, ''),

Loading…
Cancel
Save