Browse Source

fix: 自定义分析按钮权限

hsun 7 months ago
parent
commit
a4a9532020
1 changed files with 0 additions and 5 deletions
  1. 0 5
      services/data/excel/excel_info.go

+ 0 - 5
services/data/excel/excel_info.go

@@ -584,11 +584,6 @@ func GetEdbSourceByEdbInfoIdList(edbInfoIdList []int) (sourceNameList, sourceNam
 
 // GetCustomAnalysisOpButton 获取自定义分析按钮权限
 func GetCustomAnalysisOpButton(sysUser *system.Admin, belongUserId int, permissionType []int) (button excel.ExcelInfoDetailButton) {
-	// 如果没有数据权限,那么直接返回
-	if len(permissionType) == 0 {
-		return
-	}
-
 	// 管理员/所属人所有权限
 	if sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_ADMIN || sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_FICC_ADMIN || sysUser.AdminId == belongUserId {
 		button.RefreshButton = true