Skip to content

Commit

Permalink
rss feed: only guest rights 2
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed May 18, 2019
1 parent 134bb71 commit 1552eed
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions application/modules/article/views/index/rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 1552eed

Please sign in to comment.