Remove 'reader' authenticated user as it just complicates display and API access.

This commit is contained in:
Patrick Fairbank
2019-08-19 19:12:16 -07:00
parent 6a7dd76445
commit 9569c04912
17 changed files with 11 additions and 170 deletions

View File

@@ -13,10 +13,6 @@ import (
// Renders the field monitor display.
func (web *Web) fieldMonitorDisplayHandler(w http.ResponseWriter, r *http.Request) {
if !web.userIsReader(w, r) {
return
}
if !web.enforceDisplayConfiguration(w, r, map[string]string{"reversed": "false"}) {
return
}
@@ -38,10 +34,6 @@ func (web *Web) fieldMonitorDisplayHandler(w http.ResponseWriter, r *http.Reques
// The websocket endpoint for the field monitor display client to receive status updates.
func (web *Web) fieldMonitorDisplayWebsocketHandler(w http.ResponseWriter, r *http.Request) {
if !web.userIsReader(w, r) {
return
}
display, err := web.registerDisplay(r)
if err != nil {
handleWebErr(w, err)