Prevent changing ticket secret of gift-card-issuing order positions (#6281)

This commit is contained in:
luelista
2026-07-16 12:41:27 +02:00
committed by GitHub
parent ebc31c901a
commit fe5d095ae7
5 changed files with 30 additions and 3 deletions
+3
View File
@@ -245,6 +245,9 @@ def recv_classic(sender, **kwargs):
def assign_ticket_secret(event, position, force_invalidate_if_revokation_list_used=False, force_invalidate=False, save=True):
if position.pk and position.issued_gift_cards.exists():
return
gen = event.ticket_secret_generator
if gen.use_revocation_list and force_invalidate_if_revokation_list_used:
force_invalidate = True