Monorepo for Tangled

appview/notifications: secure count method

authored by

moshyfawn and committed by tangled.org 998c7b1b 3aeaff84

+1
+1
appview/notifications/notifications.go
··· 92 92 func (n *Notifications) getUnreadCount(w http.ResponseWriter, r *http.Request) { 93 93 user := n.oauth.GetUser(r) 94 94 if user == nil { 95 + http.Error(w, "Forbidden", http.StatusUnauthorized) 95 96 return 96 97 } 97 98