fix: ensure user context has is logged in set to true

This commit is contained in:
Stavros
2026-03-11 15:57:50 +02:00
parent cc5a6d73cf
commit f1e869a920

View File

@@ -115,6 +115,11 @@ func (controller *OIDCController) Authorize(c *gin.Context) {
return
}
if !userContext.IsLoggedIn {
controller.authorizeError(c, errors.New("err user not logged in"), "User not logged in", "The user is not logged in", "", "", "")
return
}
var req service.AuthorizeRequest
err = c.BindJSON(&req)