Fix compliance page to include private documents and audits

Private items should still be listed on the compliance page — only
items with visibility "NONE" should be excluded. Also add missing
trailing newline in the template file.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-20 10:02:02 +01:00
parent 63cf69fcef
commit ae6e5c8ff1
2 changed files with 3 additions and 3 deletions

View File

@@ -37,4 +37,4 @@
| Name | URL |
|------|-----|
{{ range .ExternalLinks }}| {{ cell .Name }} | {{ cell .URL }} |
{{ end }}{{ end }}
{{ end }}{{ end }}

View File

@@ -236,7 +236,7 @@ func (s *Service) fetchDocuments(ctx context.Context, tenantSvc *TenantService,
}
for _, doc := range result.Data {
if doc.TrustCenterVisibility != coredata.TrustCenterVisibilityPublic {
if doc.TrustCenterVisibility == coredata.TrustCenterVisibilityNone {
continue
}
docs = append(
@@ -281,7 +281,7 @@ func (s *Service) fetchAudits(ctx context.Context, tenantSvc *TenantService, org
}
for _, audit := range result.Data {
if audit.TrustCenterVisibility != coredata.TrustCenterVisibilityPublic {
if audit.TrustCenterVisibility == coredata.TrustCenterVisibilityNone {
continue
}