Don't allow purchasing the same file twice

Created on 5 February 2021, about 4 years ago
Updated 26 February 2025, about 1 month ago

Problem/Motivation

Our license type plugin should probably implement the checkUserHasExistingRights() method, assuming we have enough context there to ensure the same file cannot be purchased more than once if an existing active license already exists.

We shouldn't allow having more than one active license at the time for the same file.

I'm wondering whether a fix at the commerce_license level makes more sense instead of fixing that from Commerce file though.

📌 Task
Status

Postponed

Version

2.0

Component

Code

Created by

🇮🇱Israel jsacksick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024