Skip to content

Commit

Permalink
fix sensitive access condition and disable on direct request #37
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Nov 11, 2023
1 parent b96ed08 commit 77616c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controller/TorrentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ public function info(
}

// Sensitive filter
if (!$user->isModerator() && $user->isSensitive())
// @TODO add blur effect or sensitive notice instead of 404 on direct request #37
/*
if (!$user->isModerator() && $user->isSensitive() && $torrent->isSensitive())
{
throw $this->createNotFoundException();
}
*/

// Access filter
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() &&
Expand Down

0 comments on commit 77616c3

Please sign in to comment.