Explorar o código

专家范围可见bug修改

xingzai %!s(int64=3) %!d(string=hai) anos
pai
achega
bfc8af58e5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/activity.go

+ 1 - 1
controllers/activity.go

@@ -223,7 +223,7 @@ func (this *ActivityCoAntroller) ActivityList() {
 	var conditionOr string
 	if strings.Contains(permissionStr, "专家") && (userType == 1 || userType == 2 || userType == 3 || userType == 4) {
 		conditionOr = `	OR (  art.is_limit_people = 0 	AND art.activity_type_id IN ( 1,3 )  ` + condition + `) `
-		conditionOr += ` OR (  art.is_limit_people = 1 AND art.customer_type_ids LIKE '%4%'	AND art.activity_type_id IN ( 1,3 )  ` + condition + `) `
+		conditionOr += ` OR (  art.is_limit_people = 1 AND art.customer_type_ids LIKE '%4%'	 ` + condition + `) `
 	}
 	conditionOr += `	OR ( art.is_limit_people = 0 	  ` + permissionSqlStr + condition + `) `
 	condition += ` AND art.is_limit_people = 1 ` + permissionSqlStr + sqlExport + conditionOr