Skip Navigation

[Resolved] Custom Role Needs Access to Edit Taxonomies & Taxonomy Fields

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to grant Edit permission to a taxonomy "career categories" as a user with a custom Role "HR Manager". This custom Role has the taxonomy "career categories" all items checked but I get the "Cheatin’ uh? Sorry, you are not allowed to edit this item."

Solution:
We are unable to reproduce this issue at the moment. If you see the issue, please feel free to open a new ticket.

Relevant Documentation:

This support ticket is created 6 years, 11 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Author
Posts
#600354

Ed

I need a Custom Role (based on Author) to be able to change a Taxonomy Field (on a weekly basis), but he gets the "Cheatin’ uh? Sorry, you are not allowed to edit this item." message.

I've set Access to give him full control over this particular taxonomy.

#600400

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - this is known issue to us and already reported to our developers.

Could you please tell me what is your taxonomy slug for which you would like to grant access to custom author role and I will try to help you with workaround.

#600499

Ed

Hello, Minesh. The Taxonomy name is Menu Name. I have a menu name of Dining Room (dining-room). I have a date field (Menu Date, no slug displayed) set up as a term field for the taxonomy term "Dining Room".

#600504

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - could you please try to add following code to your current theme's functions.php file and try to resolve your issue.

function author_cap_filter( $allcaps, $cap, $args ) {

        $allcaps['edit_menu-names']=1;
    
    return $allcaps;

}
add_filter( 'user_has_cap', 'author_cap_filter', 10, 3 );
#600513

Ed

That seems to have done it! Thank you, Minesh!

#600517

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to know that your issue is resolved. Could you please mark ticket resolved as well 🙂

#600523

Ed

Done. Thank you.

I will assume there will be a fix released, for this issue.