feat(invitations): accept invitations with C4 consent and contact grants; share the E0 quota across holdings
This commit is contained in:
1 parent
a5990d3fc6
commit
676b3c6e24
59 files changed
+4926
-194
No files matched your search
@@ -61,11 +61,14 @@ type OrganizationRepositories interface {
|
||||
type OrganizationRepository interface {
|
||||
// CreateWithOwner stores a new organization and the active owner
|
||||
// membership of its creator. The two inserts run in the surrounding
|
||||
// transaction, so a failure between them leaves neither. The database also
|
||||
// refuses to commit an organization that has no active owner (constraint
|
||||
// organizations_owner_required, SQLSTATE 23514, raised by the commit of
|
||||
// the transaction), whatever code inserted it. owner must be an active
|
||||
// owner membership of organization; an unknown account fails with
|
||||
// transaction, so a failure between them leaves neither. The organization
|
||||
// joins the holding of the owner account: the holding is created in the
|
||||
// same transaction when that account has none, and an existing one is
|
||||
// reused, so concurrent creations of one account end in one holding. The
|
||||
// database also refuses to commit an organization that has no active owner
|
||||
// (constraint organizations_owner_required, SQLSTATE 23514, raised by the
|
||||
// commit of the transaction), whatever code inserted it. owner must be an
|
||||
// active owner membership of organization; an unknown account fails with
|
||||
// ErrUserNotFound, and the caller's transaction is aborted.
|
||||
CreateWithOwner(ctx context.Context, organization domain.Organization, owner domain.Membership) error
|
||||
|
||||
|
||||
Reference in new issue
Block a user