mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-23 17:29:19 +02:00
Update:api/users/online API endpoint unauth status code
This commit is contained in:
parent
42050a5f17
commit
dc156a2eac
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue