[wp-trac] [WordPress Trac] #42323: Posts vs CPT user permissions issue

WordPress Trac noreply at wordpress.org
Tue Oct 24 14:51:59 UTC 2017


#42323: Posts vs CPT user permissions issue
--------------------------+-----------------------------
 Reporter:  bor0          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 We have the following use case:

 1. User does not have access to create new "Posts"
 2. User does have access to create new Product Submissions (CPT post type)

 With these prerequisites, when the user clicks on "New Product Submission"
 from the list view (or the edit view), they get the No access message.

 This happens because in core we check for `edit.php` no_priv instead of
 `edit.php?post_type=product_submission`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42323>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list