Эх сурвалжийг харах

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

wangkaiyue 2 жил өмнө
parent
commit
09eac8ee81

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