File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ func Session(cfg Options) func(next http.Handler) http.Handler {
185185
186186 if user != nil {
187187 ctx = WithUser (ctx , user )
188-
189188 sessionType = proto .SessionType_User
190189 if isAdmin {
191190 sessionType = proto .SessionType_Admin
@@ -196,11 +195,11 @@ func Session(cfg Options) func(next http.Handler) http.Handler {
196195 if adminClaim {
197196 sessionType = proto .SessionType_Admin
198197 }
198+ }
199199
200- if projectClaim > 0 {
201- ctx = WithProjectID (ctx , uint64 (projectClaim ))
202- sessionType = proto .SessionType_Project
203- }
200+ if projectClaim > 0 {
201+ ctx = WithProjectID (ctx , uint64 (projectClaim ))
202+ sessionType = max (sessionType , proto .SessionType_Project )
204203 }
205204 }
206205
You can’t perform that action at this time.
0 commit comments