浏览代码

no message

xingzai 11 月之前
父节点
当前提交
a25972e091
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      controllers/yanxuan_special.go

+ 4 - 0
controllers/yanxuan_special.go

@@ -294,6 +294,10 @@ func (this *YanxuanSpecialNoLoginController) Detail() {
 		br.ErrMsg = "校验用户权限失败,Err:" + err.Error()
 		return
 	}
+	//看自己的文章时不设权限限制,不需要判断是否有研选订阅权限,都可以看。
+	if user.UserId == item.UserId {
+		havePower = true
+	}
 	var hasPermission int
 	if havePower {
 		hasPermission = 1