Skip Navigation

[Resolved] access isn’t granting access for custom roles

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

Problem: When I use Access to restrict access to my custom post type based on custom User roles, it does not seem to work as expected.

Solution: Bring the native WordPress Post type under Access control.

This support ticket is created 6 years, 7 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by ericaG 6 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#631045
Screen Shot 2018-04-03 at 10.14.15 AM (2).png

I am having trouble getting Access to work the way I believe it's supposed to. I have a custom post type which should be editable by users with a custom role. I only want this role to be able to edit this one custom post type.

1. I created the new custom role, copying the capabilities of the subscriber role.
2. I set my custom post type to be managed by Access.
3. For the custom role for that post type, I checked off the options Publish, Delete any, Edit any, Delete own, Edit own, Preview any and Read
4. When I am logged in as a user with that custom role, I can see the list of custom posts of that type, and I can create a new custom post of that type, but I get a permission error when I try to edit or delete any existing posts.

I even tried the option of granting edit/delete permissions to a specific user, and still I can only publish and edit my own posts, although the right permissions appear to be checked off for that role as you can see in the attached screenshot. I'd be happy to give you login access to this site.

I can't provide FTP access however so I was not able to send the admin email and password.

#631183

Hi, can you try these troubleshooting steps first?
- In Toolset > Access Controls > Post Types, try bringing the native WordPress "Post" type under Access control.
- If that does not resolve the problem, please temporarily deactivate all plugins except Types and Access, and activate a default theme like Twenty Seventeen. Is the problem resolved? If so, reactivate your theme and plugins one by one until the conflict is revealed. If not, I'll need to take a closer look. You can fill in fake FTP information for now.