瀏覽代碼

Merge branch 'cygx_need_p1_812' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 1 年之前
父節點
當前提交
96a73b5680
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      controllers/article.go

+ 6 - 1
controllers/article.go

@@ -272,7 +272,12 @@ func (this *ArticleController) Detail() {
 			//	}
 			//}
 			//}
-			hasPersion = services.CheckArticlePermissionType(articleId, user)
+
+			//大行业通过权限校验,再校验主客观权限
+			if hasPersion {
+				hasPersion = services.CheckArticlePermissionType(articleId, user)
+			}
+
 			if hasPersion {
 				hasPermission = 1
 				go services.ArticleHistory(articleId, user)