X-Git-Url: https://reisub.nsupdate.info/git/?p=friendica.git%2F.git;a=blobdiff_plain;f=src%2FContent%2FNav.php;fp=src%2FContent%2FNav.php;h=3828a4954c63399e895c605a8c27dc1bdddbe84b;hp=001f9fb70e0ac8431c7cc4d124b3668540bd959b;hb=f928372266887484c79eb968d196f4738fbb3657;hpb=f78b0e7c51ccb331f83e53f798fb377c0df3ec0c diff --git a/src/Content/Nav.php b/src/Content/Nav.php index 001f9fb70e..3828a4954c 100644 --- a/src/Content/Nav.php +++ b/src/Content/Nav.php @@ -284,8 +284,8 @@ class Nav $gdirpath = Profile::zrl($this->config->get('system', 'directory'), true); } - if (($this->session->getLocalUserId() || $this->config->get('system', 'community_page_style') != Community::DISABLED_VISITOR) && - !($this->config->get('system', 'community_page_style') == Community::DISABLED)) { + if (Feature::isEnabled($this->session->getLocalUserId(), Feature::COMMUNITY) && (($this->session->getLocalUserId() || $this->config->get('system', 'community_page_style') != Community::DISABLED_VISITOR) && + !($this->config->get('system', 'community_page_style') == Community::DISABLED))) { $nav['community'] = ['community', $this->l10n->t('Community'), '', $this->l10n->t('Conversations on this and other servers')]; }