We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4f2ce7b commit8f3e9f8Copy full SHA for 8f3e9f8
enterprise/audit/diff.go
@@ -145,6 +145,7 @@ func convertDiffType(left, right any) (newLeft, newRight any, changed bool) {
145
case database.TemplateACL:
146
returnfmt.Sprintf("%+v",left),fmt.Sprintf("%+v",right),true
147
case database.CustomRolePermissions:
148
+// String representation is much easier to visually inspect
149
leftArr:=make([]string,0)
150
rightArr:=make([]string,0)
151
for_,p:=rangetypedLeft {
@@ -154,8 +155,6 @@ func convertDiffType(left, right any) (newLeft, newRight any, changed bool) {
154
155
rightArr=append(rightArr,p.String())
156
}
157
-// String representation is much easier to visually inspect
158
-//typedRight := right.(database.CustomRolePermission)
159
returnleftArr,rightArr,true
160
default:
161
returnleft,right,false