New: add new caps for privacy policy#26
Merged
brettsmason merged 26 commits intoOct 30, 2025
Merged
Conversation
…mplate Feature/rework using plugin template
Member
|
I wonder if we can use this filter? https://github.com/WordPress/wordpress-develop/blob/b482707cf7cfca3edc44f19ecb55125689bedbd2/src/wp-includes/capabilities.php#L879 Potentially allow removing manage_options, as I'd rather not grant that, unless you disagree. |
New: add filters to widen action schedulers cleanup
…ithub.com:eighteen73/orbit into feature/add-privacy-policy-permissions-to-editors
Member
Author
|
@brettsmason i've amended this to move into its own class under Capabilities/Privacy (i've rebased onto main because of the plugin restructure which is why theres so many changes now) The class just removes the meta cap of "manage_options" from "manage_privacy_options" for editors and shop managers |
brettsmason
approved these changes
Oct 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@brettsmason adding this for you to get your thoughts, for editors to edit the privacy policy it requires the following capabilities:
manage_privacy_optionsandmanage_optionsBut this would mean giving them access to the whole settings section so not sure on it