Hello,
I have a cron script that updates commerce order statuses.
I have a multi-site setup on one drupal install/configuration.
Each site is a e-commerce site that receives orders.
When my cron executes a function from my custom module, it will not access the commerce order entity since the cron is running from a different domain that the order was from.
So www.domain.com/cron.php?key=key will try to view and update an order made from www.domaintwo.com, but it will not work. I'm thinking this is a domain access issue and that the "Treat cron.php as a special page request " does not bypass the permissions.
Any idea how I can work around this? Is this a bug?
Thanks,
Anthony
Comments
Comment #1
agentrickardAren't Commerce orders entities, but not nodes? If that's the case, DA should have no impact.
Without looking at the code, I can't say more. Is the code reviewable anywhere?
Comment #2
agentrickardYou should probably move this to the Domain Entity Access queue.