I want my users to only be able to subscribe to taxonomy terms and nothing else. When I gave them only access 'subscribe to taxonomy terms' their changes are not added to subscriptions table. I had to add 'subscribe to content' permission to get it to work, but I don't want them to get those additional options.

CommentFileSizeAuthor
#3 subscriptions.access_key.patch4.65 KBsalvis

Comments

salvis’s picture

Status: Active » Postponed (maintainer needs more info)

What do you mean by "their changes"? Please be more specific.

jody lynn’s picture

Steps to reproduce:

Set a role to have 'subscribe to taxonomy terms' permission and no other subscriptions permissions.
Log in as that role.
Go to My account: user/{#}/subscriptions/taxa
Check off a taxonomy term to subscribe to and hit submit.
No errror message appears, but
Your changes are not saved and nothing has been entered into the database.

Add 'subscribe to content' permission to the role.
The taxonomy subscriptions now work correctly.

salvis’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new4.65 KB

Amazing! :-)

This should fix it. The patch may have some offsets, but it should still apply.

Thanks, Lynn!

@gustav: note the additional 'access_key' form value!

jody lynn’s picture

Thanks Salvis.

The patch fixes the problem for me.

develcuy’s picture

Thank you Salvis, I've applied your patch solution to subscription_og module. Works well!

Blessings!

salvis’s picture

Version: 5.x-2.0-beta10 » 5.x-2.0-beta11
Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.