issue #20734: Enforce restricted locations.