Don't show downloads for expired licenses?

Discussion in 'Setting-up protection' started by isaac_raway, Apr 10, 2020.

  1. isaac_raway

    isaac_raway aMember Pro Customer

    Joined:
    Aug 28, 2014
    Messages:
    2
    I am using the Softsale plugin and would like for downloads posted after a license expires to not show up for download -- since the license the user has won't work for those versions. Screenshot showing the issue -- the test user can see the second Software Download record (with a posted date of tomorrow, 4/11/20 on the file upload for it), but their license expires on 4/10/20 so I would not want them to see this one.

    Is there a built-in way to do this or do I need to hack the code a bit? I'd prefer to keep it so I can easily apply updates to aMember.

    Attached Files:

  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,193
    Hello,

    I am afraid it is not possible to do by default. User either have access to software or not. It is not possible to set separate access for each individual version.

    Best Regards.
  3. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,193
    I implemented plugin for you that link files to license scheme and customer can download only release that was done before his license expiration. Here is link to plugin file:
    https://gist.github.com/cgi-caesar/0ffbbf5a003aa55c6b23971631f8f415

    You will need to set License Scheme to your files:
    aMember CP -> Protect Content -> Software Download -> (edit)

    Best Regards.

Share This Page