From 2cb0c4d0ada7afda33554ae4e08a9b38bd950e05 Mon Sep 17 00:00:00 2001 From: Nicholas Asimov Date: Thu, 18 Aug 2022 17:31:44 +0300 Subject: [PATCH] Expose Blockpage.SuppressFooter field --- teams_accounts.go | 1 + teams_accounts_test.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/teams_accounts.go b/teams_accounts.go index ab7ee7e9466..f90707147cf 100644 --- a/teams_accounts.go +++ b/teams_accounts.go @@ -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 diff --git a/teams_accounts_test.go b/teams_accounts_test.go index 3a59db9a784..a9535528bfc 100644 --- a/teams_accounts_test.go +++ b/teams_accounts_test.go @@ -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 } } } @@ -101,6 +102,7 @@ func TestTeamsAccountConfiguration(t *testing.T) { Name: "Cloudflare", MailtoAddress: "admin@example.com", MailtoSubject: "Blocked User Inquiry", + SuppressFooter: BoolPtr(true), }, }) }