Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046667
D131.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
Sun, Jun 29, 2:28 AM
Size
865 B
Mime Type
text/x-diff
Expires
Mon, Jun 30, 2:28 AM (9 h, 35 m)
Engine
blob
Format
Raw Data
Handle
676680
Attached To
D131: MINC-133 - Don't run "OrdersEventHandler::CheckUser" method in CRON
D131.diff
View Options
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
Log In to Comment