fix control give for users.

This commit is contained in:
Miroslav Šedivý 2024-07-21 14:53:55 +02:00
parent 610457a9d7
commit 15591287cf
3 changed files with 10 additions and 2 deletions

View file

@ -95,7 +95,7 @@ func (h *RoomHandler) Route(r types.Router) {
r.Post("/release", h.controlRelease)
r.With(auth.AdminsOnly).Post("/take", h.controlTake)
r.With(auth.AdminsOnly).Post("/give/{sessionId}", h.controlGive)
r.With(auth.HostsOrAdminsOnly).Post("/give/{sessionId}", h.controlGive)
r.With(auth.AdminsOnly).Post("/reset", h.controlReset)
})