Studio Admin role & instructor management #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
New
us_studio_adminrole that runs the studio, including creating instructor accounts and setting their permissions.Spec:
docs/features/user-roles.mdScope
us_studio_adminwith caps:manage_instructors,manage_offerings,manage_questions,manage_policies,manage_billing,view_all_payments,export_paymentsus_instructorcaps:manage_offerings,manage_questions,view_own_payments,export_paymentsRoleManager(created on init + activation viaInstaller)manage_instructors): create WP user withus_instructorrole, toggle per-capability access; cannot grant a cap the admin lackssrc/Auth/InstructorControllerAcceptance
user-roles.mdreflected in code; instructor create + cap toggles enforced; tests undertests/Unit/Auth/passing