From c5fda4e966ccb1257dd514c2e9e2c11dd8887ca1 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 19 Mar 2019 21:45:51 +1300 Subject: [PATCH] Order status log shouldn't be created via UI (Fixes #682) --- src/Model/OrderStatusLog.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Model/OrderStatusLog.php b/src/Model/OrderStatusLog.php index 9bb5f93a4..4cc4ce47e 100644 --- a/src/Model/OrderStatusLog.php +++ b/src/Model/OrderStatusLog.php @@ -75,6 +75,10 @@ class OrderStatusLog extends DataObject private static $table_name = 'SilverShop_OrderStatusLog'; + public function canCreate($member = null, $context = []) + { + return false; + } public function canDelete($member = null) {