• Resolved soushiken

    (@soushiken)


    tl;dr: I want to prevent users from submitting new posts for review, yet still being able to edit/list only their own auto-created post(s).

    I have created a site where each auto-created user owns only one post of a custom post type (their own personal details and info text with custom fields). This post is auto-created for each user by my own plugin and users are supposed to be able to edit their own details through the wp-admin menu.

    With Capability Manager Enhanced I got as far as creating a role that allows those users to only edit their own posts. However, they are not supposed to be able to submit new ones for review. I disabled “Create” capability for this post type, however, this completely hides the post type from the wp-admin menu and users are no longer able to view a list of this post type (containing only the post they are able to edit). If I re-enable “Create” capability, the post type with only one post shows up again, but so does the “Add New” option. Only hiding away the “Add New” (but keeping it active) as proposed in many threads would be a really lame way to solve that.

    • This topic was modified 5 years, 11 months ago by soushiken.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter soushiken

    (@soushiken)

    Nevermind, figured it out. Apparently, having “Edit” only enabled for the custom post type and disabled for “Posts” in general prevents listing them, unless “Create” is enabled for the custom post type. That’s weird and doesn’t really make sense, but as soon as “Edit” is checked for “Posts” and the custom post type, users can list and edit their own posts, but not submit new ones.

    Plugin Author Kevin Behrens

    (@kevinb)

    CME 1.7.3 adds a workaround for this WordPress quirk:

    Fixed : Work around WP quirk of completely blocking admin page access for a post type if user lacks create capability for the post type and there are no other accessible items on the menu.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List/edit own posts, not create new ones’ is closed to new replies.