Skip to content

Commit 9f0521b

Browse files
Merge pull request #119 from nscuro/fix-affected-projects-permission
Fix "Affected Projects" tab in Vulnerability view not being visible to users with `VIEW_VULNERABILITY` permission
2 parents 6e291aa + b26f0e9 commit 9f0521b

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)