feat(invitations): accept invitations with C4 consent and contact grants; share the E0 quota across holdings

This commit is contained in:
shira committed 2026-10-09 18:03:35 +03:00
1 parent a5990d3fc6
commit 676b3c6e24
59 files changed
+4926 -194

No files matched your search

+2 -1
View File
@@ -14,6 +14,7 @@ import (
"lincodex/backend/internal/domain"
"lincodex/backend/internal/port/outbound"
"lincodex/backend/internal/usecase/companyquota"
"lincodex/backend/internal/usecase/consent"
"lincodex/backend/internal/usecase/identity"
"lincodex/backend/internal/usecase/invitation"
"lincodex/backend/internal/usecase/notification"
@@ -70,7 +71,7 @@ func newInvitationHandler(
Quota: func(ctx context.Context, unit outbound.UnitOfWork, organization domain.Organization, invitationID uuid.UUID) (outbound.CompanyQuotaDecision, error) {
return quota.ReserveInvitation(ctx, unit, organization, invitationID)
},
Notifier: notifier, Clock: time.Now,
Notifier: notifier, Consents: consent.NewService(transactor, time.Now), Clock: time.Now,
})
if err != nil {
pool.Close()