fix(缺陷管理): 修复没有文件管理读权限的用户可以在别的资源页面进行关联文件的操作

--bug=1036335 --user=宋天阳 【缺陷管理】缺陷详情-无文件管理查询权限-附件仍显示文件关联文件操作-点击报错 https://www.tapd.cn/55049933/s/1469656
This commit is contained in:
song-tianyang 2024-03-05 17:58:40 +08:00 committed by 刘瑞斌
parent 8654a05712
commit 254d664204
1 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,12 @@
<icon-upload />{{ t('caseManagement.featureCase.uploadFile') }}
</a-button>
</MsUpload>
<a-button type="text" class="arco-dropdown-option !text-[var(--color-text-1)]" @click="associatedFile">
<a-button
v-permission="['PROJECT_FILE_MANAGEMENT:READ']"
type="text"
class="arco-dropdown-option !text-[var(--color-text-1)]"
@click="associatedFile"
>
<MsIcon type="icon-icon_link-copy_outlined" size="16" />
{{ t('caseManagement.featureCase.associatedFile') }}
</a-button>