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:
@@ -37,4 +37,4 @@
|
|||||||
| Name | URL |
|
| Name | URL |
|
||||||
|------|-----|
|
|------|-----|
|
||||||
{{ range .ExternalLinks }}| {{ cell .Name }} | {{ cell .URL }} |
|
{{ range .ExternalLinks }}| {{ cell .Name }} | {{ cell .URL }} |
|
||||||
{{ end }}{{ end }}
|
{{ end }}{{ end }}
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ func (s *Service) fetchDocuments(ctx context.Context, tenantSvc *TenantService,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, doc := range result.Data {
|
for _, doc := range result.Data {
|
||||||
if doc.TrustCenterVisibility != coredata.TrustCenterVisibilityPublic {
|
if doc.TrustCenterVisibility == coredata.TrustCenterVisibilityNone {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
docs = append(
|
docs = append(
|
||||||
@@ -281,7 +281,7 @@ func (s *Service) fetchAudits(ctx context.Context, tenantSvc *TenantService, org
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, audit := range result.Data {
|
for _, audit := range result.Data {
|
||||||
if audit.TrustCenterVisibility != coredata.TrustCenterVisibilityPublic {
|
if audit.TrustCenterVisibility == coredata.TrustCenterVisibilityNone {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user