Skip to content

Commit

Permalink
Expose Blockpage.SuppressFooter field
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasAsimov committed Aug 19, 2022
1 parent 55b3317 commit 2cb0c4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions teams_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ type TeamsBlockPage struct {
Name string `json:"name,omitempty"`
MailtoAddress string `json:"mailto_address,omitempty"`
MailtoSubject string `json:"mailto_subject,omitempty"`
SuppressFooter *bool `json:"suppress_footer,omitempty"`
}

type TeamsRuleType = string
Expand Down
4 changes: 3 additions & 1 deletion teams_accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ func TestTeamsAccountConfiguration(t *testing.T) {
"mailto_address": "admin@example.com",
"mailto_subject": "Blocked User Inquiry",
"logo_path": "https://logos.com/a.png",
"background_color": "#ff0000"
"background_color": "#ff0000",
"suppress_footer": true
}
}
}
Expand Down Expand Up @@ -101,6 +102,7 @@ func TestTeamsAccountConfiguration(t *testing.T) {
Name: "Cloudflare",
MailtoAddress: "admin@example.com",
MailtoSubject: "Blocked User Inquiry",
SuppressFooter: BoolPtr(true),
},
})
}
Expand Down

0 comments on commit 2cb0c4d

Please sign in to comment.