How can I sell edit permissions for a specific node?
Hello, thanks for reading this, any help would be appreciated.
So, long story short, I have a business directory website and each individual listing should have a 'Claim this listing' button. The 'Claim this listing' button should then redirect the user to a product display page that allows for the user to choose a duration (e.g. 1 month, 6 months, etc) that they wish to claim the listing for (each duration has a different price). Once a user has claimed a listing, they should be granted permission to edit the listing that they just claimed.
I've made some progress using the Commerce Licence module (specifically commerce_license_role submodule) to sell a 'Business Owner' role, but I'm not sure how to reference the listing that is to be claimed in my products - I don't want to have to make a product for each possible node (unless there is an automatic way of doing so) and I don't know how to make a 'generic' product that can do this.
Any advice would be great. Thanks!
tl;dr I need to be able to sell a registered user 'edit node access' to a specific node for a specific duration of time.