浏览代码

Merge branch 'mfyx_2.0' of http://8.136.199.33:3000/cxzhang/hongze_mfyx into debug

xingzai 1 年之前
父节点
当前提交
8b06764ca4
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      controllers/article.go

+ 4 - 0
controllers/article.go

@@ -217,6 +217,10 @@ func (this *ArticleController) Detail() {
 	if detail.ArticleTypeId == 14 {
 		detail.IsApplyAppointmentExpert = true //判断文章类型是否属于专家访谈  查研观向11.0
 	}
+	if user.UserId == 0 {
+		hasPermission = 1
+	}
+
 	resp.HasPermission = hasPermission
 	resp.HaveResearch = haveResearch