From 802248602c931297a3ad4ca651146c726253542f Mon Sep 17 00:00:00 2001 From: "Marco (Valandur)" Date: Fri, 26 Oct 2018 16:14:43 +0200 Subject: [PATCH] fix(dependencies): Remove betterbuttons dependency --- composer.json | 3 +-- src/PageElement.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 4bc3698..16b73a4 100755 --- a/composer.json +++ b/composer.json @@ -19,8 +19,7 @@ }], "require": { "silverstripe/framework": "^4.0.1", - "symbiote/silverstripe-gridfieldextensions": "^3", - "unclecheese/betterbuttons": "dev-feature/ss4-upgrade" + "symbiote/silverstripe-gridfieldextensions": "^3" }, "extra": { "installer-name": "pagesections", diff --git a/src/PageElement.php b/src/PageElement.php index 783247c..f8552ab 100755 --- a/src/PageElement.php +++ b/src/PageElement.php @@ -59,7 +59,7 @@ public function canEdit($member = null) } public function canDelete($member = null) { - return true; + return false; } public function canCreate($member = null, $context = []) {