-
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
Disable Nav block editing for lower perm users #37029
Conversation
Size Change: +429 B (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
FYI If you do |
@getdave This call is incorrect. It should be |
Yeh I ended up figuring this one out via debugging the code. Thanks for clarifying though. |
50a57b9
to
f1d7144
Compare
Description
In #36286 we learnt the Nav block provides a very poor UX for users with lower permissions.
The block should be readable but not writeable/editable.
This PR seeks to address that by:
Currently this uses a constant variable to indicate whether the user has suitable permissions. We will need to replace that with a call to
canUser()
and ensure thewp_navigation
post type is configured with the correct perms.Addresses part of #36286
How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).