|
@@ -247,6 +247,7 @@ func GetReportDetail(userinfo *models.WxUserItem, reportId int) (reportDetail fi
|
|
|
err = errors.New("获取用户权限信息失败")
|
|
|
return
|
|
|
}
|
|
|
+ fmt.Println(companyPermission)
|
|
|
if companyPermission == "" {
|
|
|
if applyCount > 0 {
|
|
|
hasPermission = 5
|
|
@@ -254,9 +255,8 @@ func GetReportDetail(userinfo *models.WxUserItem, reportId int) (reportDetail fi
|
|
|
hasPermission = 2
|
|
|
}
|
|
|
} else {
|
|
|
- var articlePermissionName string
|
|
|
var hasPersion bool
|
|
|
- slice := strings.Split(articlePermissionName, ",")
|
|
|
+ slice := strings.Split(companyPermission, ",")
|
|
|
if utils.InArrayByStr(slice, "周期") {
|
|
|
hasPersion = true
|
|
|
}
|