|
@@ -1003,6 +1003,7 @@ func (this *ActivityCoAntroller) SignupCancel() {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
func (this *ActivityCoAntroller) GetUserSearchContent() {
|
|
@@ -1018,6 +1019,7 @@ func (this *ActivityCoAntroller) GetUserSearchContent() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
+ isHideResearch, _ := this.GetBool("IsHideResearch", false)
|
|
|
uid := user.UserId
|
|
|
detailSeearch := new(models.CygxActivityUserSearchContent)
|
|
|
detailSeearch.IsShowJurisdiction = 0
|
|
@@ -1094,7 +1096,7 @@ func (this *ActivityCoAntroller) GetUserSearchContent() {
|
|
|
}
|
|
|
var listChartPermissionidNew2 []*models.ActivityChartPermission
|
|
|
for _, v := range list2 {
|
|
|
- if userType == 1 {
|
|
|
+ if userType == 1 || isHideResearch {
|
|
|
|
|
|
if !strings.Contains(v.PermissionName, "研选") {
|
|
|
listChartPermissionidNew2 = append(listChartPermissionidNew2, v)
|
|
@@ -1106,7 +1108,7 @@ func (this *ActivityCoAntroller) GetUserSearchContent() {
|
|
|
resp.ListChartPermission2 = listChartPermissionidNew2
|
|
|
var listChartPermissionidNew []*models.ActivityChartPermission
|
|
|
for _, v := range listChartPermissionid {
|
|
|
- if userType == 1 {
|
|
|
+ if userType == 1 || isHideResearch {
|
|
|
if !strings.Contains(v.PermissionName, "研选") {
|
|
|
listChartPermissionidNew = append(listChartPermissionidNew, v)
|
|
|
}
|