[feature] Allow editing domain blocks/allows, fix comment import

This commit is contained in:
tobi 2025-04-04 17:12:02 +02:00
commit e856d09f8e
13 changed files with 320 additions and 181 deletions

View file

@ -742,8 +742,8 @@ func permsFromJSON(
}
// Set remaining fields.
perm.SetPublicComment(apiPerm.PublicComment)
perm.SetObfuscate(&apiPerm.Obfuscate)
perm.SetPublicComment(util.PtrOrZero(apiPerm.PublicComment))
perm.SetObfuscate(util.Ptr(util.PtrOrZero(apiPerm.Obfuscate)))
// We're done.
perms = append(perms, perm)