mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-28 17:51:22 +01:00
Allow all roles to see 'listed in CVE allowlist' column (#16860)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
ae83f9a027
commit
4f253731f4
@ -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'
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user