Skip Navigation

[Resolved] Prevent a user role from deleting and creating taxonomy terms

This support ticket is created 2 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Arno 2 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2362461
toolset-access-taxonomy.jpg

Hello,

I want the user role Editor to be able to assign and edit terms in the taxonomy "Regions". I do not want the user role to be able to create and delete terms. I configured this in Toolset Access, see attached.

1. An Editor can still delete terms despite not allowing it.
2. Is it possible to allow assign+edit, but not create terms?

There's a warning message: "You need to manually set the access rules for taxonomy Regions. That taxonomy is shared between several post types that have different access rules.". I'm not sure what that means. The taxonomy is indeed shared between post types.

Is there more documentation than what's available in the example at https://toolset.com/course/wordpress-membership-sites/?

Thanks!
Arno

#2364235

Hello,

Q1) An Editor can still delete terms despite not allowing it.
In your case, you need to try these:
in the screenshot you provided above:
https://toolset.com/wp-content/uploads/2022/05/2362461-toolset_access_taxonomy.jpg
Disable option "Delete terms", "Edit terms" and "Manage terms" for user role "Editor"
So "Editor" user can only assign terms with posts, I have tried it in my localhost, it works fine.

Q2) Is it possible to allow assign+edit, but not create terms?
When you disable the option "Manage terms", you should be able to see a message: Since you disabled 'Manage terms', 'Edit terms' has also been disabled.
'Edit terms' permission needs high level than "Create terms", it is not possible to disallow create terms but allow edit term.

And the warning message you mentioned above won't take effect on the results, you can ignore it.

#2364443

Thanks Luo. Ok, if option 2 is not possible, I will give this role the permission to assign terms only. Indeed that works fine.