Skip to content

Commit

Permalink
small adjust (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcatalini authored Jul 12, 2021
1 parent e2ebc15 commit 7408c41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rest/model/account/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ type PermissionsMap struct {

// PermissionsDNS wraps a User's "permissions.dns" attribute
type PermissionsDNS struct {
ViewZones bool `json:"view_zones"`
ManageZones bool `json:"manage_zones"`
ZonesAllowByDefault bool `json:"zones_allow_by_default"`
ZonesDeny []string `json:"zones_deny"`
ZonesAllow []string `json:"zones_allow"`
RecordsAllow []Record `json:"records_allow"`
RecordsDeny []Record `json:"records_deny"`
ViewZones bool `json:"view_zones"`
ManageZones bool `json:"manage_zones"`
ZonesAllowByDefault bool `json:"zones_allow_by_default"`
ZonesDeny []string `json:"zones_deny"`
ZonesAllow []string `json:"zones_allow"`
RecordsAllow []PermissionsRecord `json:"records_allow"`
RecordsDeny []PermissionsRecord `json:"records_deny"`
}

// PermissionsData wraps a User's "permissions.data" attribute
Expand Down Expand Up @@ -85,7 +85,7 @@ type AuthTag struct {
Value string `json:"value"`
}

type Record struct {
type PermissionsRecord struct {
Domain string `json:"domain"`
Subdomains bool `json:"include_subdomains"`
Zone string `json:"zone"`
Expand Down

0 comments on commit 7408c41

Please sign in to comment.