Add membership source

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-01-04 16:25:44 +01:00
parent 3564bd5495
commit b6799cbb01
14 changed files with 225 additions and 36 deletions

View File

@@ -248,6 +248,7 @@ func (s *AccountService) AcceptInvitation(
IdentityID: identityID,
OrganizationID: invitation.OrganizationID,
Role: invitation.Role,
Source: coredata.MembershipSourceManual,
CreatedAt: now,
UpdatedAt: now,
}

View File

@@ -489,6 +489,7 @@ func (s *OrganizationService) CreateOrganization(
IdentityID: identityID,
OrganizationID: organizationID,
Role: coredata.MembershipRoleOwner,
Source: coredata.MembershipSourceManual,
CreatedAt: now,
UpdatedAt: now,
}

View File

@@ -298,6 +298,7 @@ func (s *Service) HandleAssertion(
IdentityID: identity.ID,
OrganizationID: config.OrganizationID,
Role: coredata.MembershipRoleViewer,
Source: coredata.MembershipSourceSAML,
CreatedAt: now,
UpdatedAt: now,
}