-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add specific capability for Navigation permissions #65881
Comments
@fabiankaegy I think you were looking at permissions at some point relating to template parts. Is there any overlap here with navigation? In our case it's not the block that needs granular permissions but the act of being able to manipulate a menu. |
@getdave I think this goes much more in depth than what I had looked at before. But I do believe this is a very important topic that we should embrace at some point. Today the entire site editor is an all or nothing experience. But I do believe that especially in larger organizations there are very different sets of responsibilities that all get combined into one here. Someone that should be able to update the contents of the site header navigation for example shouldn't necessarily also have the capability to change the layout of the site / the global styles. It would be very nice if we could split the |
This has long been an issue. There's an existing Trac ticket: https://core.trac.wordpress.org/ticket/29213 |
Was there a point where users without |
In block themes, the navigation menu cannot be edited with editor privileges. |
We need to make it possible to customise the block based on the standard WordPress permissions system. That would allow those Plugins to work as you describe. |
Would it better to create a ticket related to the
Not sure if there are already any open issues related to this. |
I'm wondering if we could do something similar to what was proposed in #58957 whereby we add specific permissions for the Navigation post type and then map these to |
What problem does this address?
When it comes to the Navigation block, currently editor roles are able to add a navigation block within the block editor but are not able to assign any menus as the navigation block returns the message
You do not have the permission to edit Navigation menus
. The functionality is not available because by default editor roles haveedit_theme_options
set tofalse
and without that, the navigation block doesn't allow any access to menus. (Ref: Navigation block user permissions)The only workaround I have currently is to enable
edit_theme_options
for editor roles so they have the ability to access menus within the Navigation block, however that would then open up full access to theme options and FSE which I wouldn't want for editors.What is your proposed solution?
I would suggest creating a specific capability for managing navigation menus. This would allow more granular control over what different roles can do, without giving them access to all theme options. It would also allow the navigation block to be fully functional within the block editor without giving the users access to the site editor (FSE).
The text was updated successfully, but these errors were encountered: