def _can_load_course_on_mobile(user, course):
 return (is_mobile_available_for_user(user, course) and (_has_staff_access_to_descriptor(user, course, course.id) or _has_fulfilled_all_milestones(user, course.id)))

def _can_load_course_on_mobile ( user , course ) : return ( is_mobile_available_for_user ( user , course ) and ( _has_staff_access_to_descriptor ( user , course , course . id ) or _has_fulfilled_all_milestones ( user , course . id ) ) )
checks if a user can view the given course on a mobile device .