yasithdev commented on code in PR #646:
URL: https://github.com/apache/airavata-custos/pull/646#discussion_r4418652513


##########
pkg/identity/middleware.go:
##########
@@ -64,21 +65,35 @@ func Middleware(verifier TokenVerifier, resolver 
UserResolver, publicPaths []str
                        writeJSONError(w, http.StatusServiceUnavailable, 
"auth_lookup_failed", "Identity resolution failed")
                        return
                }
-               ctx := WithCaller(req.Context(), caller)
+               pendingRoute := userAgreementPending != nil && 
userAgreementPending(req)

Review Comment:
   could you rename this to isAllowedBeforeOnboarding?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to