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