Title: Custom User Capability without edit_post
Last modified: August 21, 2016

---

# Custom User Capability without edit_post

 *  Resolved [_JamesW](https://wordpress.org/support/users/_jamesw/)
 * (@_jamesw)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/custom-user-capability-without-edit_post/)
 * Hi, I’m working on setting up different user roles which can access only the 
   appropriate content types. Content types in question are pods based on custom
   post types.
 * For those pods, I’ve changed the user capability to ‘custom capability’, and 
   given each role the appropriate capability.
 * The trouble is that the admin menu and the listing screen seem to remain controlled
   by ‘edit_post’ rather than the custom capability. So users who don’t have edit_post
   can’t use the pods they do have capability for.
 * If they go to wp-admin/edit.php?post_type=some_pod, they get the error “You do
   not have sufficient permissions to access this page.”. Even though they do have
   capability to edit that pod.
 * [https://wordpress.org/plugins/pods/](https://wordpress.org/plugins/pods/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [_JamesW](https://wordpress.org/support/users/_jamesw/)
 * (@_jamesw)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/custom-user-capability-without-edit_post/#post-5143679)
 * Granting the edit_{capability}s additional capability allows it to display the
   menu item, but if you click through to it, the listing page is still blocked.
 *  Plugin Contributor [Josh Pollock](https://wordpress.org/support/users/shelob9/)
 * (@shelob9)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/custom-user-capability-without-edit_post/#post-5143784)
 * Can you please tell me which exact capabilities you granted to which roles? That
   way I can test if they should work, and determine if this is a mistake on your
   part that I can help you fix or a Pods bug that needs addressed.
 *  Thread Starter [_JamesW](https://wordpress.org/support/users/_jamesw/)
 * (@_jamesw)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/custom-user-capability-without-edit_post/#post-5143837)
 * Hi, when I went back and set up a test case from scratch I figured out what was
   going on.
 * All of my custom content types are grouped under a submenu (using Parent Menu
   ID). I had set up that submenu with edit_posts as the required capability. It
   seems that this permission governs access to the pods listing page of any pods
   under it. By creating a new capability for everyone who might be able to view
   that menu, I can get the result I wanted.
 * I do think the way it’s working is a bit odd:
    {site}/wp-admin/edit.php?post_type
   =testpod will work if I have access to testpod and it’s not in a submenu. If 
   I move it under a submenu that I don’t have capability for, that same url no 
   longer works. However I still see the menu and the link (as long as I have edit_testpods).
   So the menu permission is affecting my ability to use the pod listing, but not
   my ability to see the menu.
 * Anyway, that’s just minor oddness. The main problem was my submenu permissions.
 * Thanks!
 *  Plugin Contributor [Josh Pollock](https://wordpress.org/support/users/shelob9/)
 * (@shelob9)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/custom-user-capability-without-edit_post/#post-5143873)
 * I understand know what you’re trying to do, thanks for the extra explanation.
   You should be able to set a specific capability for the submenu page, as [add_submenu_page()](http://codex.wordpress.org/Function_Reference/add_submenu_page)
   has a parameter for that.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom User Capability without edit_post’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Josh Pollock](https://wordpress.org/support/users/shelob9/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/custom-user-capability-without-edit_post/#post-5143873)
 * Status: resolved