Page MenuHomeIn-Portal Phabricator

D131.diff
No OneTemporary

File Metadata

Created
Sun, Jun 29, 2:28 AM

D131.diff

Index: branches/5.2.x/units/orders/orders_event_handler.php
===================================================================
--- branches/5.2.x/units/orders/orders_event_handler.php
+++ branches/5.2.x/units/orders/orders_event_handler.php
@@ -1578,9 +1578,10 @@
*/
function CheckUser($event)
{
- if ($this->Application->isAdminUser || defined('GW_NOTIFY')) {
- // don't check for user in order while processing payment
- // gateways, because they can do cross-domain ssl redirects
+ if ( $this->Application->isAdminUser || defined('GW_NOTIFY') || defined('CRON') ) {
+ // 1. don't check, when Administrator is editing the order.
+ // 2. don't check while processing payment gateways, because they can do cross-domain ssl redirects.
+ // 3. don't check from CRON, because it's like Admin updates orders on other user behalf.
return;
}

Event Timeline