Fix Edit link not defined if no CMS access
In the situation that a user has draft site access but no CMS access they received a '$editLink not defined error'. This corrects that be defining it as false.
This commit is contained in:
parent
f55bcdadd8
commit
a6d17e69fb
|
@ -123,6 +123,8 @@ class BetterNavigatorExtension extends DataExtension
|
|||
&& ($isDev || $this->owner->dataRecord->canEdit())
|
||||
? $nav['CMSLink']['Link'] : false;
|
||||
}
|
||||
}else{
|
||||
$editLink = false;
|
||||
}
|
||||
|
||||
// Is the logged in member nominated as a developer?
|
||||
|
|
Loading…
Reference in New Issue