-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editors don't see Site Pages menu item #13057
Comments
Hi |
Hello @davidlevinwork! Your willingness to contribute is very much appreciated ;)! The "Site Pages" button already exists and works as expected in most scenarios. However, it's not being shown on self-hosted sites when the user has "Editor" role. I think we'll need to modify this condition. Let us know if you want to look into it or if you'd rather pick a more implementation-focused task ;). |
Few more notes about the issue:
I haven't dived deeper into this issue, I'll leave it to whoever will pick up this task. |
Closed #13056 as a duplicate even though it was created first since this issue already has a bit more technical discussion and detail in the comments! /hat tip @reginabally ❤️ Note: it's also worth considering the FAB button, which should have an option to add a page if that is allowed by the role, i.e. for editors but not authors. I tested whether or not I could see the Pages option while logged in from various roles (administrator, editor, author, contributor, subscriber) using WPAndroid 15.9-rc-1 and I found that the Pages option does not appear for the author, contributor, or subscriber roles which is the expected behavior. I also found that I could access the option to create posts while logged in as either a contributor or a subscriber but an error displayed after trying to add a post as either of those roles (screenshots). A contributor should be able to create a post but it should default to pending status and not be published until it is approved. A subscriber should be read-only and not be allowed to create a post or a page. See https://wordpress.org/support/article/roles-and-capabilities/ for more information about WordPress roles and capabilities. |
I researched this issue during maintenance rotation and discovered the following: A recent iOS issue requested that iOS change their logic to match Android (implemented in this PR). This issue suggests that Android check iOS and follow their implementation (prior to their change above). It seems like we are at a crossroads as to which implementation should prevail, but for now both platforms behave the same way. |
I researched this a bit as part of the maintenance rotation. The implementation has been refactored and now the logic for showing the page edit or create option resides mainly in the following two functions: In both cases the requirement is Admin access to the self hosted site.
Given that the implementations are in sync and that getting the correct options for self-hosted sites might not be trivial/if feasible I was thinking that maybe we could drop this issue or remove it from the prioritised @zwarm Since you also touched this recently do you agree with closing the issue? |
Expected behavior
User in Editor role can see and edit site pages.
Actual behavior
"Site Pages" menu item is not displayed for users in Editor role.
Steps to reproduce the behavior
#3373718-zen
The text was updated successfully, but these errors were encountered: