From 1552eed977d130811258abd3b4811f7c50d7767c Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Sat, 18 May 2019 18:56:35 +0200 Subject: [PATCH] rss feed: only guest rights 2 http://redmine.ilch2.de/issues/591 --- application/modules/article/views/index/rss.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/application/modules/article/views/index/rss.php b/application/modules/article/views/index/rss.php index d1d8f492c..0cbaaca3a 100644 --- a/application/modules/article/views/index/rss.php +++ b/application/modules/article/views/index/rss.php @@ -3,10 +3,10 @@ $articles = $this->get('articles'); $date = new \Ilch\Date(); -$adminAccess = null; -if ($this->getUser()) { - $adminAccess = $this->getUser()->isAdmin(); -} +// $adminAccess = null; +// if ($this->getUser()) { + // $adminAccess = $this->getUser()->isAdmin(); +// } $xml = new DOMDocument('1.0', 'utf-8'); $xml->formatOutput = true; @@ -35,7 +35,8 @@ if ($articles) { foreach ($articles as $article) { - if (!is_in_array($this->get('readAccess'), explode(',', $article->getReadAccess())) && $adminAccess == false) { + //if (!is_in_array($this->get('readAccess'), explode(',', $article->getReadAccess())) && $adminAccess == false) { + if (!is_in_array($this->get('readAccess'), explode(',', $article->getReadAccess()))) { continue; }