Invalidate tenant entitlements after module changes

This commit is contained in:
2026-08-04 09:29:35 +02:00
parent 60e2676809
commit e890a90d08
2 changed files with 3 additions and 1 deletions
@@ -911,6 +911,7 @@ def update_system_tenant_modules(
audit_event="tenant_modules.system_policy_updated",
)
session.commit()
lifecycle.registry.invalidate_tenant_entitlement(tenant.id)
return TenantModuleEntitlementResponse.model_validate(
module_entitlement_payload(tenant.id, state)
)
@@ -988,6 +989,7 @@ def update_tenant_modules(
),
)
session.commit()
lifecycle.registry.invalidate_tenant_entitlement(tenant.id)
return TenantModuleEntitlementResponse.model_validate(
module_entitlement_payload(tenant.id, state)
)