Update:api/users/online API endpoint unauth status code

This commit is contained in:
advplyr 2022-11-13 08:26:32 -06:00
parent 42050a5f17
commit dc156a2eac

View File

@ -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()