Skip to content

Commit 5459df3

Browse files
committed
ENH Update code to reflect changes to LeftAndMain
1 parent 8a893c8 commit 5459df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Extensions/ShareDraftContentControllerExtension.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class ShareDraftContentControllerExtension extends Extension
2424
public function MakeShareDraftLink()
2525
{
2626
if ($member = Security::getCurrentUser()) {
27-
if ($this->owner->hasMethod('CurrentPage') && $this->owner->CurrentPage()->canView($member)) {
28-
return $this->owner->CurrentPage()->ShareTokenLink();
27+
if ($this->owner->hasMethod('currentRecord') && $this->owner->currentRecord()->canView($member)) {
28+
return $this->owner->currentRecord()->ShareTokenLink();
2929
}
3030
if ($this->owner->hasMethod('canView') && $this->owner->canView($member)) {
3131
return $this->owner->ShareTokenLink();

0 commit comments

Comments
 (0)