From cec5c4553b3738001f29422aabba021adf1d8f90 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:31:06 +1200 Subject: [PATCH] FIX Use canDelete, not the now-deleted canArchive (#1232) --- src/Models/BaseElement.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Models/BaseElement.php b/src/Models/BaseElement.php index 92cbf9e5..3b86e210 100644 --- a/src/Models/BaseElement.php +++ b/src/Models/BaseElement.php @@ -276,11 +276,7 @@ public function canDelete($member = null) if ($this->hasMethod('getPage')) { if ($page = $this->getPage()) { - if ($page->hasExtension(Versioned::class)) { - return Deprecation::withNoReplacement(fn() => $page->canArchive($member)); - } else { - return $page->canDelete($member); - } + return $page->canDelete($member); } }