Skip to content

Commit

Permalink
Merge pull request #1181 from Justin-Holmes/jholmes/ui-toggle-reason
Browse files Browse the repository at this point in the history
Add ui_read_only_toggle_reason to Access organization
  • Loading branch information
jacobbednarz authored Mar 1, 2023
2 parents bab690a + b1a4688 commit def8851
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/1181.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
access_organization: add ui_read_only_toggle_reason field
```
1 change: 1 addition & 0 deletions access_organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type AccessOrganization struct {
AuthDomain string `json:"auth_domain"`
LoginDesign AccessOrganizationLoginDesign `json:"login_design"`
IsUIReadOnly *bool `json:"is_ui_read_only,omitempty"`
UIReadOnlyToggleReason string `json:"ui_read_only_toggle_reason,omitempty"`
UserSeatExpirationInactiveTime string `json:"user_seat_expiration_inactive_time,omitempty"`
}

Expand Down
6 changes: 4 additions & 2 deletions access_organization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ func TestUpdateAccessOrganization(t *testing.T) {
"header_text": "Widget Corp",
"footer_text": "© Widget Corp"
},
"is_ui_read_only": false
"is_ui_read_only": false,
"ui_read_only_toggle_reason": "this is my reason"
}
}
`)
Expand All @@ -184,7 +185,8 @@ func TestUpdateAccessOrganization(t *testing.T) {
HeaderText: "Widget Corp",
FooterText: "© Widget Corp",
},
IsUIReadOnly: BoolPtr(false),
IsUIReadOnly: BoolPtr(false),
UIReadOnlyToggleReason: "this is my reason",
}

mux.HandleFunc("/accounts/"+testAccountID+"/access/organizations", handler)
Expand Down

0 comments on commit def8851

Please sign in to comment.