fix the direction of the has_access check