浏览代码

no message

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

+ 3 - 0
controllers/yanxuan_special.go

@@ -243,6 +243,9 @@ func (this *BaseAuthMobileController) Detail() {
 	//}
 
 	//resp.HasPermission = hasPermission
+	if user.UserId == 0 {
+		resp.HasPermission = 1
+	}
 
 	//如果是用户本人写的专栏,那么就不做校验
 	//if item.UserId == user.UserId || user.UserId == 0 {