瀏覽代碼

no message

xingzai 11 月之前
父節點
當前提交
21e0252541
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      controllers/article.go

+ 4 - 0
controllers/article.go

@@ -210,6 +210,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