Basic notifications handling.

LMS-11163
This commit is contained in:
Diana Huang
2014-07-30 13:54:17 -04:00
committed by Julia Hansbrough
parent a0b4f8b6c6
commit 69f900dd90
5 changed files with 160 additions and 6 deletions

View File

@@ -57,8 +57,7 @@ def initialize_permissions(course_key, user_who_created_course):
def remove_all_instructors(course_key):
"""
Removes given user as instructor and staff to the given course,
after verifying that the requesting_user has permission to do so.
Removes all instructor and staff users from the given course.
"""
staff_role = CourseStaffRole(course_key)
staff_role.remove_users(*staff_role.users_with_role())