Feat/add role user access controls - #749
Infinite-Null wants to merge 59 commits into
Conversation
…trolSettings to enable explicit saving
… update dependencies
…ion in AccessControlSettings
…ction tracking in AccessControlSettings
… and refresh lockfile
…pdate clear hook type definition
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
…ication logic in helper function
…ic to reset access control settings upon toggle
…rom suggestions in AccessControlSettings
…me variables for consistent styling
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #749 +/- ##
=============================================
+ Coverage 75.63% 75.78% +0.15%
- Complexity 3381 3409 +28
=============================================
Files 138 139 +1
Lines 13129 13273 +144
=============================================
+ Hits 9930 10059 +129
- Misses 3199 3214 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@Infinite-Null FYI some merge conflicts to resolve to keep this moving along |
…_user_can_access_feature
…n tests with improved permission and data validation coverage
…e2e test setup to prevent cross-test interference
|
…cess control UI to specific admin features
…ude them from controller responses
|
Hi @jeffpaul, Thanks for the feedback! I’ve updated the PR accordingly. I’ve also removed both Subscriber and Contributor from the listed roles. |
|
The failing tests seem to be unrelated to the changes introduced in this PR. |
Closes: #736
Description
This PR introduces Feature-Level Access Controls exclusively for Editor Experiments, allowing site administrators to restrict access to individual AI-powered editor features based on specific WordPress roles or individual users.
Testing Instructions
Screencast
User: Ankit Shah | Role: Editor
Screen.Recording.2026-06-22.at.1.35.17.PM-compressed.mp4
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Sonnet 4.6
Used for: Validating bug, suggesting a fix.
Changelog Entry