Skip to content

Commit

Permalink
Fix anonymous bookings limit
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Oct 3, 2023
1 parent 8e94839 commit 02103df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/redturtle/prenotazioni/adapters/booker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ def _validate_user_limit(self, fiscalcode):
def search_future_bookings_by_fiscalcode(self, fiscalcode):
"""Find all the future bookings registered for the same fiscalcode"""
result = []

for booking in api.content.find(
for booking in api.portal.get_tool("portal_catalog").unrestrictedSearchResults(
portal_type="Prenotazione",
fiscalcode=fiscalcode,
path={"query": "/".join(self.context.getPhysicalPath())},
Expand Down

0 comments on commit 02103df

Please sign in to comment.