From 6539e5ebeb892c4e5aa12605f878dd1e03fc29e4 Mon Sep 17 00:00:00 2001 From: Michael Desa Date: Fri, 3 Nov 2017 09:13:03 -0400 Subject: [PATCH] Properly pass organization context to handlers --- server/auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/auth.go b/server/auth.go index d89cb83b2..f49ad4fd3 100644 --- a/server/auth.go +++ b/server/auth.go @@ -139,6 +139,7 @@ func AuthorizedUser( } if hasAuthorizedRole(u, role) { + r = r.WithContext(ctx) next(w, r) return }