|
@@ -160,9 +160,9 @@ func (this *ArticleNoLoginController) Detail() {
|
|
|
detail.Abstract, _ = services.GetReportContentTextSub(detail.Abstract)
|
|
|
if companyPermission == "" {
|
|
|
if applyCount > 0 {
|
|
|
- hasPermission = 6
|
|
|
- } else {
|
|
|
hasPermission = 2
|
|
|
+ } else {
|
|
|
+ hasPermission = 3
|
|
|
}
|
|
|
hasFree = 2
|
|
|
goto Loop
|
|
@@ -322,6 +322,14 @@ Loop:
|
|
|
if user.UserId == 0 {
|
|
|
hasPermission = 1
|
|
|
}
|
|
|
+ if hasPermission != 1 {
|
|
|
+ hasPermission, err = services.GetUserPermissionCode(user.UserId, user.CompanyId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取用户状态信息失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
resp.HasPermission = hasPermission
|
|
|
resp.IsSpecialArticle = detail.IsSpecialArticle
|
|
|
resp.Detail = detail
|