xingzai 1 жил өмнө
parent
commit
2c91c43cc3
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      services/activity.go

+ 5 - 0
services/activity.go

@@ -820,6 +820,11 @@ func GetActivityDetailUserPower(user *models.WxUserItem, activityInfo *models.Ac
 		havePower = true
 		return
 	}
+	//处理决策人可见权限
+	if user.IsMaker == 0 && activityInfo.IsMakerShow == 1 {
+		havePower = false
+		return
+	}
 	userType, permissionStr, permissionStrZhengShi, e := GetUserTypeZhengShi(user.CompanyId)
 	if e != nil {
 		err = errors.New("GetCompanyPermissionUpgrade, Err: " + e.Error())