diff --git a/README.md b/README.md index 136218a..36fb3d0 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,8 @@ There may be occasions when you wish to override the "Edit in CMS" link. For exa */ public function BetterNavigatorEditLink() { - return CMSEditLinkAPI::find_edit_link_for_object($this->displayedEvent()); + $event = $this->displayedEvent(); + return $event->canEdit() ? CMSEditLinkAPI::find_edit_link_for_object($event) : false; } ````