[Resolved] Trouble Using Standard User Roles & Capabilities to Manage Custom Post Types

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.

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

Tagged: 

This topic contains 8 replies, has 2 voices, and was last updated by  chuckH 5 days, 19 hours ago. The support staff assigned to this topic is Shane.

Viewing 11 posts - 1 through 11 (of 11 total)
Author
Posts
#569772

BACKGROUND/OVERVIEW:
I am using custom user roles and capabilities. I am familiar with the post below:
https://wp-types.com/forums/topic/you-do-not-have-rights-to-create-new-items-when-creating-new-many-to-many/

I considered using Access, but it was not robust or flexible enough for my particular needs. Instead, I am using User Role Editor to manage permissions.

PROBLEM:
Users receive the message below when attempting to manage many-to-many relationships:
"You do not have rights to create new items"

FOR TROUBLESHOOTING:
I provided you with access to our staging site.

All of our many-to-many relationships are effected, but you can begin with this one:

course-sections < teaching-assignments > instructors

Where, teaching-assignments is the intermediate table. When attempting to edit a course-section, and then add a new teaching assignment, that's when the warning message ("You do not have rights to create new items") occurs.

#569773

For troubleshooting the issue with many-to-many relationship, the user role to use is:
Course Admin (course-admin)

That user role has been configured with the necessary capabilities.

#569801

Shane
Forum moderator

Supporter languages: English (English )

Supporter Timezone: America/Jamaica (GMT-05:00)

Hi Chuck,

Thank you for contacting our support forum.

I tried taking a look at the issue but it seems that the password that you provided didnt work.

Could you try it and let me know if it works for you.

Thanks,
Shane

#569816

Hi Shane, I do not recall the password. Please let me know how to securely share a new password pair with you.

#569818

BY THE WAY...
It's possible to create many-to-many relationships when directly editing the intermediate post type (in this case... "teaching assignments").

However, when I attempt to create the same many-to-many relationship from within either of the parent post types (in this case... course sections, people), I get the warning message ("You do not have rights to create new items").

#569997

Shane
Forum moderator

Supporter languages: English (English )

Supporter Timezone: America/Jamaica (GMT-05:00)

Hi Chuck,

It could be a permission issue. Could you try giving the default wordpress post type the same role as as the ones in the CPT

Also the private fields have been enabled again.

Thanks,
Shane

#570053
#570141

Shane
Forum moderator

Supporter languages: English (English )

Supporter Timezone: America/Jamaica (GMT-05:00)

Hi Chuck,

I've enabled the private fields again so that you can provide the credentials as the one in the first private field doesn't work.

Thanks,
Shane

#570170
#570503

Shane
Forum moderator

Supporter languages: English (English )

Supporter Timezone: America/Jamaica (GMT-05:00)

Hi Chuck,

I see and believe I know what the issue is. Your teaching Assignment CPT isn't publicly visible correct?

Try making it visible and let me know if the issue remains.
Thanks,
Shane

#570560

Hi Shane,

I appreciate your help. Issue resolved. You may close the ticket.

Viewing 11 posts - 1 through 11 (of 11 total)

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

Known issues and their solutions

We document known issues and their solutions in Toolset erratas. Save time by checking there first and seeing if what you are facing is a known issue. This list is kept short. We do our best to resolve all known issues with every release of Toolset plugins.

Support Policy

Toolset staff will help you use the Toolset plugins correctly, provide any information you need, help troubleshoot problems and advice on best-practices.

Please make sure to issue only one topic per each support ticket.

For more information, read our full Customer Support Policy.

Need custom programming work for your site? Check out our certified partners.