get_allowed_orders to be used in UserOrdersData.query