EZP-22479: Fixed siteaccess check in legacy_mode