Parcourir la source

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

xingzai il y a 1 an
Parent
commit
a97062238e
1 fichiers modifiés avec 11 ajouts et 11 suppressions
  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)