Rename authz.WithSesion to authz.WithSkipAssumptionCheck since we only used it with a nil arg

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-16 09:41:08 +04:00
committed by Bryan Frimin
parent 5beceb58d2
commit ca4ae96f31
3 changed files with 9 additions and 6 deletions

View File

@@ -87,6 +87,7 @@ func (a *Authorizer) authorize(ctx context.Context, conn pg.Conn, params Authori
}
membership := findMembershipForOrg(memberships, resourceOrgID)
// Check whether the viewer is currently assuming the org of the accessed resource
if membership != nil && params.Session != nil {
if _, err := a.getActiveChildSessionForMembership(
ctx,