Skip to content

Commit

Permalink
UPDATE reference canDelete as canArchive is deprecated via
Browse files Browse the repository at this point in the history
  • Loading branch information
muskie9 committed Nov 23, 2024
1 parent 214d240 commit ac183f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/BaseElementObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function canDelete($member = null)
}

if ($page = $this->getPage()) {
return $page->canArchive($member);
return $page->canDelete($member);
}

return Permission::check('CMS_ACCESS', 'any', $member);
Expand Down

0 comments on commit ac183f9

Please sign in to comment.