fix 81810
This commit is contained in:
@@ -379,7 +379,7 @@ export default {
|
||||
handleDownload ({ id, fileName }) {
|
||||
downloadFile(`/laws/dataCenter/lawsDataCenterFile/download?id=${id}`, fileName)
|
||||
},
|
||||
hasManagePermission ({ authManageIds }) {
|
||||
hasManagePermission ({ authManageIds, ownerId }) {
|
||||
const adminRoleList = window._CONFIG.adminRoleCode.split(',')
|
||||
const userRoleList = this.userInfo.roleCode.split(',')
|
||||
const isAdmin = userRoleList.some(tt => adminRoleList.includes(tt))
|
||||
@@ -387,7 +387,7 @@ export default {
|
||||
return true
|
||||
}
|
||||
const authManageArr = (authManageIds || '').split(',')
|
||||
if (authManageArr.includes(this.userInfo.id)) {
|
||||
if (authManageArr.includes(this.userInfo.id) || ownerId === this.userInfo.id) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user