Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7cc71e1

Browse files
committed
fix audit
1 parent 1f4ceee commit 7cc71e1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

enterprise/audit/diff.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ func diffValues(left, right any, table Table) audit.Map {
3131
}
3232

3333
for i := 0; i < rightT.NumField(); i++ {
34+
if !rightT.Field(i).IsExported() {
35+
continue
36+
}
37+
3438
var (
3539
leftF = leftV.Field(i)
3640
rightF = rightV.Field(i)

enterprise/audit/table.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ var AuditableResources = auditMap(map[any]map[string]Action{
6161
"max_ttl": ActionTrack,
6262
"min_autostart_interval": ActionTrack,
6363
"created_by": ActionTrack,
64+
"is_private": ActionTrack,
6465
},
6566
&database.TemplateVersion{}: {
6667
"id": ActionTrack,

0 commit comments

Comments
 (0)