Browse Source

no message

xingzai 1 year ago
parent
commit
4611bd6408
1 changed files with 3 additions and 0 deletions
  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 {