diff --git a/internal/rpc/friend/friend.go b/internal/rpc/friend/friend.go index 60f22984e..26c40f20c 100644 --- a/internal/rpc/friend/friend.go +++ b/internal/rpc/friend/friend.go @@ -108,7 +108,7 @@ func (s *friendServer) ImportFriends(ctx context.Context, req *pbfriend.ImportFr // ok func (s *friendServer) RespondFriendApply(ctx context.Context, req *pbfriend.RespondFriendApplyReq) (resp *pbfriend.RespondFriendApplyResp, err error) { resp = &pbfriend.RespondFriendApplyResp{} - if err := s.userCheck.Access(ctx, req.ToUserID); err != nil { + if err := tokenverify.CheckAccessV3(ctx, req.ToUserID); err != nil { return nil, err } friendRequest := tablerelation.FriendRequestModel{FromUserID: req.FromUserID, ToUserID: req.ToUserID, HandleMsg: req.HandleMsg, HandleResult: req.HandleResult}