This is rendered in place of the existing course creation settings
in root account settings when the RootAccount
:create_course_subaccount_picker flag is enabled. It supports setting
the existing course creation settings, plus two new settings:
- teachers_can_create_courses_anywhere, and
- students_can_create_courses_anywhere
This will eventually be used in the CreateCourseModal to allow admins
to limit where users can create courses, if desired.
refs LS-2780
flag = create_course_subaccount_picker
Test plan:
- With the flag off, open root account settings as an admin
- Expect to see the classic settings under 'Who can create new
courses'
- Turn on create_course_subaccount_picker flag
- On the settings page, expect those classic controls to be replaced
- Expect the radio buttons under 'Teachers' and 'Students' to render
only when the parent checkbox is checked
- Alter the settings, save the page, and expect changes to persist
Change-Id: I6801b9c201f3fb00a3c0821ea1e855b4561bb72c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276964
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Reviewed-by: Jonathan Guardado <jonathan.guardado@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>