diff --git a/esi_leap/api/controllers/v1/lease.py b/esi_leap/api/controllers/v1/lease.py index 1898396..5ea29c2 100644 --- a/esi_leap/api/controllers/v1/lease.py +++ b/esi_leap/api/controllers/v1/lease.py @@ -291,7 +291,6 @@ def _lease_get_all_authorize_filters( filters = { "status": status, - "offer_uuid": offer_uuid, "start_time": start_time, "end_time": end_time, "resource_type": resource_type, @@ -299,6 +298,9 @@ def _lease_get_all_authorize_filters( "time_filter_type": constants.WITHIN_TIME_FILTER, } + if offer_uuid is not None: + filters["offer_uuid"] = offer_uuid + if view == "all": utils.policy_authorize("esi_leap:lease:lease_admin", cdict, cdict) filters["owner_id"] = owner_id