X-Git-Url: https://reisub.nsupdate.info/git/?p=friendica.git%2F.git;a=blobdiff_plain;f=src%2FModule%2FCalendar%2FExport.php;fp=src%2FModule%2FCalendar%2FExport.php;h=0078b5eb58191a0f721d06769a27ec00da92a473;hp=1e1729ffd2382f431ee03b93e1786b5b050c293c;hb=657856d3f4c0cab1933477d20b1510308ccf0cd9;hpb=1a7d91457b21cfb1e1988a6cb2a11480fe15b252 diff --git a/src/Module/Calendar/Export.php b/src/Module/Calendar/Export.php index 1e1729ffd2..0078b5eb58 100644 --- a/src/Module/Calendar/Export.php +++ b/src/Module/Calendar/Export.php @@ -78,7 +78,7 @@ class Export extends BaseModule $this->baseUrl->redirect('profile/' . $nickname . '/restricted'); } - if (!$this->session->isAuthenticated() && !Feature::isEnabled($owner['uid'], 'public_calendar')) { + if (!$this->session->isAuthenticated() && !Feature::isEnabled($owner['uid'], Feature::PUBLIC_CALENDAR)) { $this->sysMessages->addNotice($this->t('Permission denied.')); $this->baseUrl->redirect('profile/' . $nickname); }