Grant studio-admin caps to administrators; re-gate Scheduler; mark 1.0.0-rc.1 #13
Reference in New Issue
Block a user
Delete Branch "feature/admin-studio-caps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makes the studio owner's WordPress administrator account run the studio, and marks the plugin as a release candidate.
Administrators get studio-admin capabilities
user_has_capfilter (RoleManager::grantStudioCapsToAdministrators()) grants every studio-admin capability to any user withmanage_options.us_studio_adminrole still grants only studio caps and confers no core WordPress admin powers (no plugin install, user/content/settings management). It remains available for non-administrator studio staff.STUDIO_ADMIN_CAPSsource of truth.Re-gate the Scheduler dashboard
view_all_lessonscapability (parallel toview_all_payments) to the studio-admin set.view_all_lessonsin bothAdminMenuandLessonController::renderAdminDashboard, instead ofmanage_options— so aus_studio_adminuser can see it too (administrators still do, via the cap filter).Version
1.0.0-rc.1to reflect the in-progress, pre-release state (header +USC_VERSION). Verifiedcomposer buildemitsunsupervised-schedular-1.0.0-rc.1.zipand the packaged header matches. Will move to1.0.0before tagging a release.Docs & tests
docs/features/user-roles.md(cap matrix + administrator note),docs/features/lesson-booking.md(Scheduler gating)Verification: 65 tests / 200 assertions pass; PHPCS clean; PHPStan level 6 no errors. Branch rebased on current
main(includes #12).🤖 Generated with Claude Code