It seems that discount codes can always be used even if:
- it is unpublished
- the expiration date is past
Please see attached. The attached discount code can still be applied. This is a big issue for us.
Attachments can only be downloaded by logged in users