Skip to content

Commit

Permalink
FIX Use canDelete, not the now-deleted canArchive
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 13, 2024
1 parent e285be8 commit a362f3f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,7 @@ public function canDelete($member = null)

if ($this->hasMethod('getPage')) {
if ($page = $this->getPage()) {
if ($page->hasExtension(Versioned::class)) {
return $page->canArchive($member);
} else {
return $page->canDelete($member);
}
return $page->canDelete($member);
}
}

Expand Down

0 comments on commit a362f3f

Please sign in to comment.