Skip to content

Commit b26f0e9

Browse files
committed
Fix "Affected Projects" tab in Vulnerability view not being visible to users with VIEW_VULNERABILITY permission
Signed-off-by: nscuro <[email protected]>
1 parent 74e5118 commit b26f0e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/portfolio/vulnerabilities/Vulnerability.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
</div>
9696

9797
</b-tab>
98-
<b-tab v-if="isPermitted(PERMISSIONS.VULNERABILITY_ANALYSIS)">
98+
<b-tab v-if="isPermitted(PERMISSIONS.VIEW_VULNERABILITY)">
9999
<template v-slot:title><i class="fa fa-tasks"></i> {{ $t('message.affected_projects') }} <b-badge variant="tab-total">{{ totalAffectedProjects }}</b-badge></template>
100100
<affected-projects :key="this.uuid" :source="source" :vulnId="vulnId" v-on:total="totalAffectedProjects = $event" />
101101
</b-tab>

0 commit comments

Comments
 (0)