mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #7147
This commit is contained in:
@@ -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/, ''),
|
||||
|
||||
Reference in New Issue
Block a user