mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 00:47:33 +00:00
fix: return absolute asset urls (#3676)
This commit is contained in:
@@ -24,7 +24,7 @@ func (s *Server) GetUserGrantByID(ctx context.Context, req *mgmt_pb.GetUserGrant
|
||||
return nil, err
|
||||
}
|
||||
return &mgmt_pb.GetUserGrantByIDResponse{
|
||||
UserGrant: user.UserGrantToPb(s.assetAPIPrefix, grant),
|
||||
UserGrant: user.UserGrantToPb(s.assetAPIPrefix(ctx), grant),
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ func (s *Server) ListUserGrants(ctx context.Context, req *mgmt_pb.ListUserGrantR
|
||||
return nil, err
|
||||
}
|
||||
return &mgmt_pb.ListUserGrantResponse{
|
||||
Result: user.UserGrantsToPb(s.assetAPIPrefix, res.UserGrants),
|
||||
Result: user.UserGrantsToPb(s.assetAPIPrefix(ctx), res.UserGrants),
|
||||
Details: obj_grpc.ToListDetails(
|
||||
res.Count,
|
||||
res.Sequence,
|
||||
|
Reference in New Issue
Block a user