Skip to content

Commit

Permalink
Order status log shouldn't be created via UI (Fixes #682)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Mar 19, 2019
1 parent 992bd9b commit c5fda4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Model/OrderStatusLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c5fda4e

Please sign in to comment.