Add organization to all authorized endpoints

We use it in filtering quite a bit.
This commit is contained in:
Eli Ribble 2026-03-06 22:03:24 +00:00
parent e1bcbf79b1
commit 502a4d15df
No known key found for this signature in database
6 changed files with 23 additions and 43 deletions

View file

@ -24,7 +24,7 @@ func getSignin(w http.ResponseWriter, r *http.Request) {
signin(w, errorCode, next)
}
func getSignout(w http.ResponseWriter, r *http.Request, user *models.User) {
func getSignout(w http.ResponseWriter, r *http.Request, org *models.Organization, user *models.User) {
auth.SignoutUser(r, user)
http.Redirect(w, r, "/signin", http.StatusFound)
}