[wp-trac] [WordPress Trac] #54889: Cannot access 'Manage menus' in Navigation block toolbar when running a classic theme
WordPress Trac
noreply at wordpress.org
Sat Feb 12 01:07:33 UTC 2022
#54889: Cannot access 'Manage menus' in Navigation block toolbar when running a
classic theme
--------------------------+---------------------
Reporter: noisysocks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9.1
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Comment (by ironprogrammer):
Following @manfcarlo's train of thought, adding the `edit_posts`
capability to the `wp_navigation` post type registration ''does'' enforce
the restricted access that is expected on the Navigation Menus edit page.
It is no longer accessible by non-admins. That addition could be added to
@noisysocks's PR.
**Related Issue**
While I believe it to be separate, this is worth mentioning here, as it
will come up during testing, whether or not the above adjustments make it
into this patch.
The following issues were observed when when accessing the block editor as
a non-admin (tested: editor and author).
- Without the fix applied, in both 5.9 and trunk, non-admins have the
ability to add, edit, and remove Navigation blocks. I don't believe this
is by design (there are several "toast" warnings to this effect).
- With the fix applied, when a Navigation block is present, its block may
be replaced with the warning: ''Navigation menu has been deleted or is
unavailable. __Create a new menu?__'' Clicking "Create a new menu?" allows
some basic tinkering with the Navigation block (e.g. alignment, colors,
styles), which can be saved. After saving by a non-admin, the block
appears as a "placeholder", but with styling applied.
I'm trying to track down if this has been recorded in Gutenberg issues,
where I'll post additional details.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54889#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list