Allow all roles to see 'listed in CVE allowlist' column (#16860)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Shijun Sun 2022-05-18 13:50:34 +08:00 committed by GitHub
parent ae83f9a027
commit 4f253731f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -73,7 +73,7 @@
<clr-dg-column [clrDgField]="'fix_version'">{{
'VULNERABILITY.GRID.COLUMN_FIXED' | translate
}}</clr-dg-column>
<clr-dg-column *ngIf="isSystemAdmin()">{{
<clr-dg-column>{{
'VULNERABILITY.GRID.IN_ALLOW_LIST' | translate
}}</clr-dg-column>
<clr-dg-placeholder>
@ -168,7 +168,7 @@
</div>
<ng-template #elseBlock>{{ res.fix_version }}</ng-template>
</clr-dg-cell>
<clr-dg-cell *ngIf="isSystemAdmin()">
<clr-dg-cell>
{{
(isInAllowList(res.id)
? 'TAG_RETENTION.YES'

View File

@ -125,10 +125,8 @@ export class ArtifactVulnerabilitiesComponent implements OnInit, OnDestroy {
setTimeout(() => {
this.hasViewInitWithDelay = true;
}, 0);
if (this.isSystemAdmin()) {
// get system and project CVE allow list
this.getCurrentCVEAllowList();
}
// get system and project CVE allow list
this.getCurrentCVEAllowList();
}
ngOnDestroy() {