'Assign access roles to user in the course.'

def _add_role_access_to_user(self, user, course_id):

    if (user is not None):
        for role in [CourseInstructorRole, CourseStaffRole]:
            role(course_id).add_users(user)
