瀏覽代碼

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

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

+ 11 - 11
controllers/yanxuan_special.go

@@ -215,17 +215,17 @@ func (this *YanxuanSpecialController) Detail() {
 	}
 
 	//如果是用户本人写的专栏,那么就不做校验
-	if item.UserId == sysUser.UserId || sysUser.UserId == 0 {
-		resp.HasPermission = 1
-	} else {
-		hasPermission, err := services.GetUserRaiPermissionYanXuanInfo(sysUser)
-		if err != nil {
-			br.Msg = "获取失败"
-			br.ErrMsg = "获取失败, Err:" + err.Error()
-			return
-		}
-		resp.HasPermission = hasPermission
-	}
+	//if item.UserId == sysUser.UserId || sysUser.UserId == 0 {
+	//	resp.HasPermission = 1
+	//} else {
+	//	hasPermission, err := services.GetUserRaiPermissionYanXuanInfo(sysUser)
+	//	if err != nil {
+	//		br.Msg = "获取失败"
+	//		br.ErrMsg = "获取失败, Err:" + err.Error()
+	//		return
+	//	}
+	//	resp.HasPermission = hasPermission
+	//}
 
 	//如果在web端有样式或者上传了文件,小程序就禁止编辑修改内容
 	hasStyle, err := utils.ArticleHasStyle(item.Content)