Permission Groups Not Overriding Role-Based Capabilities for Custom Post Types
-
Setup:
- Plugins Used:
- Pods – Custom Content Types and Fields (v3.2.8.2)
- PublishPress Capabilities (v2.19.1)
- PublishPress Permissions (v4.1.3)
- WordPress Version: 6.7.2
I have a setup where:
- I created 20+ custom post types using the Pods plugin.
- I created 20 permission groups using PublishPress Permissions.
- I created two user roles using PublishPress Capabilities.
Goal:
I want to control editing access to specific posts within custom post types via permission groups, without needing to grant broad edit permissions at the user role level.
Current Issue:
- I assign edit rights to certain posts (not entire post types) via permission groups.
- Users in the relevant permission groups should be able to edit only those assigned posts.
- However, the custom post type’s admin menu does not appear for these users unless I also enable edit permissions for the custom post type in the user role (via PublishPress Capabilities).
- The problem with enabling edit permissions at the user role level is that users then see all custom post types in the admin menu — even those where they have no access to posts (resulting in empty post lists).
Expected Behavior vs. Actual Behavior:
- Expected: The permission group should determine access to posts and control whether the corresponding custom post type menu appears.
- Actual: It seems that the user role must have edit rights for a post type before permission groups can apply post-specific permissions.
Questions:
- Is this the expected behavior of PublishPress Permissions?
- Shouldn’t permission groups override the user role’s capabilities when determining which posts a user can edit?
- Is there a recommended way to hide empty custom post type menus when a user has no accessible posts?
A similar issue was discussed in my previous thread, “‘Post-specific Permissions take priority’ not working since update”. At the time, I avoided updating the plugin, but now I have updated, and the problem persists. That thread is already closed for new messages, so I am opening this new one.
I could create a user role for every permission group and enable the edit rights in the user role. But this would defeat the purpose of the permission groups and would make the configuration of user roles unnecessarily complicated and redundant.
Any guidance would be greatly appreciated!
- Plugins Used:
The topic ‘Permission Groups Not Overriding Role-Based Capabilities for Custom Post Types’ is closed to new replies.