mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-30 18:48:55 +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)
|
// POST: api/users/online (admin)
|
||||||
async getOnlineUsers(req, res) {
|
async getOnlineUsers(req, res) {
|
||||||
if (!req.user.isAdminOrUp) {
|
if (!req.user.isAdminOrUp) {
|
||||||
return res.sendStatus(404)
|
return res.sendStatus(403)
|
||||||
}
|
}
|
||||||
const usersOnline = this.getUsersOnline()
|
const usersOnline = this.getUsersOnline()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user