Adding change to staff role for new users and draft migration
This commit is contained in:
committed by
Brandon DeRosier
parent
20fc5bae87
commit
8533fd9734
@@ -37,7 +37,7 @@ from lms.djangoapps.ccx.overrides import (
|
||||
)
|
||||
from lms.djangoapps.ccx.utils import (
|
||||
add_master_course_staff_to_ccx,
|
||||
assign_coach_role_to_ccx,
|
||||
assign_staff_role_to_ccx,
|
||||
is_email,
|
||||
get_course_chapters,
|
||||
)
|
||||
@@ -507,8 +507,8 @@ class CCXListView(GenericAPIView):
|
||||
email_students=True,
|
||||
email_params=email_params,
|
||||
)
|
||||
# assign coach role for the coach to the newly created ccx
|
||||
assign_coach_role_to_ccx(ccx_course_key, coach, master_course_object.id)
|
||||
# assign staff role for the coach to the newly created ccx
|
||||
assign_staff_role_to_ccx(ccx_course_key, coach, master_course_object.id)
|
||||
# assign staff role for all the staff and instructor of the master course to the newly created ccx
|
||||
add_master_course_staff_to_ccx(
|
||||
master_course_object,
|
||||
|
||||
Reference in New Issue
Block a user