Skip to content

Commit

Permalink
rss feed: only guest rights
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed May 18, 2019
1 parent 2f7ae87 commit 134bb71
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions application/modules/article/controllers/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,12 @@ public function rssAction()
$userMapper = new UserMapper();

$user = null;
if ($this->getUser()) {
$user = $userMapper->getUserById($this->getUser()->getId());
}
// FIXME: Only create RSS-Feed with guest rights to avoid leaking articles not supposed to be for everyone.
// This (unfinished) feature needs a complete rewrite to be ready.
// http://redmine.ilch2.de/issues/591
// if ($this->getUser()) {
// $user = $userMapper->getUserById($this->getUser()->getId());
// }

$readAccess = [3];
if ($user) {
Expand Down

0 comments on commit 134bb71

Please sign in to comment.