'Scope `course_instructor` valid only if the user is an instructor
of at least one course.'

def scope_course_instructor(self, data):

    course_ids = self.find_courses(data['user'], CourseInstructorRole.ROLE)
    return (['instructor_courses'] if course_ids else None)
