소스 검색

no message

xingzai 1 년 전
부모
커밋
ead8d7723e
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      controllers/article.go

+ 6 - 1
controllers/article.go

@@ -270,7 +270,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)