Skip to content

Commit

Permalink
(BSR)[API] fix: add missing allowed action for expired offer
Browse files Browse the repository at this point in the history
  • Loading branch information
jcicurel-pass committed Oct 18, 2024
1 parent ef57578 commit 0d10d51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/pcapi/core/educational/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class CollectiveOfferTemplateAllowedAction(enum.Enum):
CollectiveOfferDisplayedStatus.EXPIRED: (
CollectiveOfferAllowedAction.CAN_EDIT_DATES,
CollectiveOfferAllowedAction.CAN_ARCHIVE,
CollectiveOfferAllowedAction.CAN_DUPLICATE,
),
CollectiveOfferDisplayedStatus.ENDED: ( # after 48h, cannot edit discount or cancel anymore
CollectiveOfferAllowedAction.CAN_EDIT_DISCOUNT,
Expand Down

0 comments on commit 0d10d51

Please sign in to comment.