Commerce License Publish Content, 'Unlimited pages publishing', License available to all users

Created on 18 September 2023, 10 months ago
Updated 28 September 2023, 9 months ago

First of all, thank you very much for this fantastic module.

I've only found one unwanted behavior during testing so far:

When I create Content type with 'Unlimited pages publishing' option and by purchasing a license, the created license becomes available to all users and allows them to create a content of 'Unlimited pages publishing' type using the same license while the license is valid. Although it seems to me that it is designed to list the licenses in node creation form that apply to the logged in user.
Any suggestion how to achieve that each user only has their own licenses to create content of the type 'Unlimited pages publishing'?

Thank you very much.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @drupal.rs
  • Assigned to dangreenman
  • Status changed to Downport 10 months ago
  • πŸ‡³πŸ‡ΏNew Zealand dangreenman

    Cheers! I'm glad you like this module.
    Thank you for testing, and feeding back.
    You have discovered a bug!
    See attached patch for fix.

    I am unable to git commit at the moment due to technical difficulties. Patch will be merged at a later date.

  • Status changed to Fixed 10 months ago
  • πŸ‡³πŸ‡ΏNew Zealand dangreenman

    Bug fix merged with 1.0.x branch.

  • Status changed to Fixed 10 months ago
  • πŸ‡³πŸ‡ΏNew Zealand dangreenman
  • Thank you very much for your quick reply and for the patch.
    A patch has been applied and it removes other user's licenses from the dropdown menu in the node creation form.
    But the information still remains:
    'Choose your license to publish this content.'
    And the option to buy a new license is missing.

    The scenario for using the module is as follows:
    Each user purchases one (his own) license to publish an unlimited number of nodes while the license is active. And there is a possibility to renew the license so that all nodes remain published or if the license is not renewed all nodes are unpublished.

    Thank you again.

  • πŸ‡³πŸ‡ΏNew Zealand dangreenman

    I have not been able to reproduce the problem as you describe.
    The option to buy a license is there in my testing.

    Note: As per the documentation. The option to renew is dependent upon the "Allow renewal window" settings, defined on the product variation type.
    See: /admin/commerce/config/product-variation-types

    The option to renew the license will only appear within the time window set.
    Please try again and see if this is your issue.

  • Excuse me, it was my fault: after reinstalling the module, the purchase option appeared. I probably made a change to the code, trying to fix the problem, that I didn't revert back later.

    Thank you very much.

Production build 0.69.0 2024