xingzai 11 ماه پیش
والد
کامیت
0872f4c0dc
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      controllers/article.go

+ 3 - 0
controllers/article.go

@@ -145,6 +145,9 @@ func (this *ArticleNoLoginController) Detail() {
 			detail.ShareImg = departmentDetail.ImgUrl
 		}
 	}
+	if user.UserId == 0 {
+		hasPermission = 1
+	}
 	resp.HasPermission = hasPermission
 	resp.IsSpecialArticle = detail.IsSpecialArticle
 	resp.Detail = detail