Browse Source

wip:新增超级订阅 商机管理权限判断

wangkaiyue 2 years ago
parent
commit
09eac8ee81
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/model/question.go

+ 1 - 1
internal/model/question.go

@@ -172,7 +172,7 @@ func (q *cQuestion) DetailQuestion(ctx context.Context, qRes *QuestionReq) (repl
 	// 权限校验
 	jSession := SessionCtx.Get(ctx).JSession
 	powerPass := func() bool {
-		if bRes.CheckNewvip == 0 && bRes.CheckNewvip == 0 && bRes.CheckNewentniche == 0 {
+		if bRes.CheckMember == 0 && bRes.CheckNewvip == 0 && bRes.CheckNewentniche == 0 {
 			return true
 		}
 		power := utility.Middleground.PowerCheckCenter.Check(g.Config().MustGet(ctx, "chat.appId").String(), jSession.UserId, jSession.NewUid, jSession.AccountId, jSession.EntId, jSession.PositionType, jSession.PositionId)