You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the process of adding a new user role that would be able to access the Site Editor on a site using full site editing, I've discovered that there is no documentation anywhere about which capabilities are needed for such access. The Roles And Capabilities page has no references to the Site Editor or block themes at all.
The wp-admin/site-editor.php file itself contains a check for edit_theme_options, but from my testing this alone is insufficient. I created a fresh WP install, added edit_theme_options to the default Editor role, and tried to use the Site Editor. I found that:
The Appearance item shows up in the side menu with the "Editor" item.
Clicking it shows the editor side nav ("Design" etc), but the site preview does not load
The Styles editor does not load
The Pages view only loads partially (page list yes, authors are missing, previews don't work)
Templates and Patterns views load
403 forbidden errors appear in network tab for some REST requests
It seems there are additional capability checks buried inside the API requests... but there's zero guidance as to what those are.
Without this documentation, there's no way to know how to add or modify roles to control site editor access. Many multi-user sites need to give a design or development team access to the Site Editor to change appearance. Having to make those users administrators is a security issue, since that also grants them control over users and plugins that may be risky.
Suggested Fix
At a minimum, I'd like to see the documentation for edit_theme_options (and whichever other capabilities are involved) improved to mention that they control Site Editor access when FSE is active.
A larger but better fix would be dedicated documentation (not sure where...) about how to allow or remove Site Editor access for any user role.
The text was updated successfully, but these errors were encountered:
Issue Description
In the process of adding a new user role that would be able to access the Site Editor on a site using full site editing, I've discovered that there is no documentation anywhere about which capabilities are needed for such access. The Roles And Capabilities page has no references to the Site Editor or block themes at all.
The
wp-admin/site-editor.php
file itself contains a check foredit_theme_options
, but from my testing this alone is insufficient. I created a fresh WP install, addededit_theme_options
to the default Editor role, and tried to use the Site Editor. I found that:It seems there are additional capability checks buried inside the API requests... but there's zero guidance as to what those are.
URL of the Page with the Issue
https://wordpress.org/documentation/article/roles-and-capabilities/
Section of Page with the issue
https://wordpress.org/documentation/article/roles-and-capabilities/#capabilities
https://wordpress.org/documentation/article/roles-and-capabilities/#edit_theme_options
Why is this a problem?
Without this documentation, there's no way to know how to add or modify roles to control site editor access. Many multi-user sites need to give a design or development team access to the Site Editor to change appearance. Having to make those users administrators is a security issue, since that also grants them control over users and plugins that may be risky.
Suggested Fix
At a minimum, I'd like to see the documentation for
edit_theme_options
(and whichever other capabilities are involved) improved to mention that they control Site Editor access when FSE is active.A larger but better fix would be dedicated documentation (not sure where...) about how to allow or remove Site Editor access for any user role.
The text was updated successfully, but these errors were encountered: