Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1169631
D131.id308.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Sep 26, 9:13 AM
Size
880 B
Mime Type
text/x-diff
Expires
Sat, Sep 27, 9:13 AM (15 h, 9 m)
Engine
blob
Format
Raw Data
Handle
757799
Attached To
D131: MINC-133 - Don't run "OrdersEventHandler::CheckUser" method in CRON
D131.id308.diff
View Options
Index: modules/in-commerce/units/orders/orders_event_handler.php
===================================================================
--- modules/in-commerce/units/orders/orders_event_handler.php
+++ modules/in-commerce/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
Log In to Comment