def _has_access_location(user, action, location, course_key):
 checkers = {'staff': (lambda : _has_staff_access_to_location(user, location, course_key))}
 return _dispatch(checkers, action, user, location)

def _has_access_location ( user , action , location , course_key ) : checkers = { 'staff' : ( lambda : _has_staff_access_to_location ( user , location , course_key ) ) } return _dispatch ( checkers , action , user , location )
check if user has access to this location .