|
@@ -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)
|