mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Update:api/users/online API endpoint unauth status code
This commit is contained in:
parent
42050a5f17
commit
dc156a2eac
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user