[wp-trac] [WordPress Trac] #22895: user_can_admin_menu() is Type-Insensitive for Users who Can't Create Pages

WordPress Trac noreply at wordpress.org
Tue Dec 7 12:07:36 UTC 2021


#22895: user_can_admin_menu() is Type-Insensitive for Users who Can't Create Pages
------------------------------------+-----------------------------
 Reporter:  kevinB                  |       Owner:  johnbillion
     Type:  defect (bug)            |      Status:  accepted
 Priority:  normal                  |   Milestone:  Future Release
Component:  Role/Capability         |     Version:  3.5
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------

Comment (by pikamander2):

 @DrewAPicture @SergeyBiryukov - This appears to still be an issue as of
 5.8.

 When disabling the "Add New" button, users are shown a "Sorry, you are not
 allowed to access this page." page when they try to access the list of
 posts unless they have access to at least one submenu.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/22895#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list