From dc156a2eacbb97493f0e344810747867b3880a2f Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 13 Nov 2022 08:26:32 -0600 Subject: [PATCH] Update:api/users/online API endpoint unauth status code --- server/controllers/UserController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/UserController.js b/server/controllers/UserController.js index 196f7d4d..2c2caf21 100644 --- a/server/controllers/UserController.js +++ b/server/controllers/UserController.js @@ -179,7 +179,7 @@ class UserController { // POST: api/users/online (admin) async getOnlineUsers(req, res) { if (!req.user.isAdminOrUp) { - return res.sendStatus(404) + return res.sendStatus(403) } const usersOnline = this.getUsersOnline()