chore: insert audit log entries for organization CRUD (#13660)

* chore: insert audit log entries for organization CRUD
This commit is contained in:
Steven Masley
2024-06-25 09:03:15 -05:00
committed by GitHub
parent 9c1a6a29f2
commit d7eadee4d7
6 changed files with 71 additions and 9 deletions
+10
View File
@@ -254,6 +254,16 @@ var auditableResourcesTypes = map[any]map[string]Action{
"app_id": ActionIgnore,
"secret_prefix": ActionIgnore,
},
&database.Organization{}: {
"id": ActionIgnore,
"name": ActionTrack,
"description": ActionTrack,
"created_at": ActionIgnore,
"updated_at": ActionTrack,
"is_default": ActionTrack,
"display_name": ActionTrack,
"icon": ActionTrack,
},
}
// auditMap converts a map of struct pointers to a map of struct names as