feat(audit): add audit logging for organization invites
Log ORG_INVITE_SENT action when a user sends an organization invite, capturing the invited email and role in the audit metadata.
This commit is contained in:
@@ -75,6 +75,7 @@ class AuditAction(str, Enum):
|
||||
ORG_MEMBER_REMOVE = "org.member.remove"
|
||||
ORG_MEMBER_ROLE_CHANGE = "org.member.role_change"
|
||||
ORG_OWNERSHIP_TRANSFERRED = "org.ownership.transferred"
|
||||
ORG_INVITE_SENT = "org.invite.sent"
|
||||
|
||||
# Session actions
|
||||
SESSION_CREATE = "session.create"
|
||||
|
||||
Reference in New Issue
Block a user