Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve getUserToken logic. #2681

Closed
wants to merge 13 commits into from
3 changes: 0 additions & 3 deletions internal/rpc/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ func (s *authServer) GetUserToken(ctx context.Context, req *pbauth.GetUserTokenR

resp := pbauth.GetUserTokenResp{}

if authverify.IsManagerUserID(req.UserID, s.config.Share.IMAdminUserID) {
return nil, errs.ErrNoPermission.WrapMsg("don't get Admin token")
}
if _, err := s.userRpcClient.GetUserInfo(ctx, req.UserID); err != nil {
return nil, err
}
Expand Down
Loading