From 77616c3c8a865b35c338f3229c70c066c48dd907 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 11 Nov 2023 04:17:57 +0200 Subject: [PATCH] fix sensitive access condition and disable on direct request #37 --- src/Controller/TorrentController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Controller/TorrentController.php b/src/Controller/TorrentController.php index 4b49411..31b7c10 100644 --- a/src/Controller/TorrentController.php +++ b/src/Controller/TorrentController.php @@ -57,10 +57,13 @@ class TorrentController extends AbstractController } // 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() &&