Need to check permissions for both domains - thus calling two functions