def has_instructor_access_for_class(user, course_id):
 course = get_course_overview_with_access(user, 'staff', course_id)
 return bool(has_access(user, 'staff', course))

def has_instructor_access_for_class ( user , course_id ) : course = get_course_overview_with_access ( user , 'staff' , course_id ) return bool ( has_access ( user , 'staff' , course ) )
returns true if the user is an instructor for the course .