From e5947a8586f4fcd4f79d3f5fe235669608622f7e Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Wed, 28 May 2025 15:13:44 +0700 Subject: [PATCH] api torrent list compatible with special section use normal section searchBox --- app/Repositories/TorrentRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/TorrentRepository.php b/app/Repositories/TorrentRepository.php index 0c2d861d..e9a61377 100644 --- a/app/Repositories/TorrentRepository.php +++ b/app/Repositories/TorrentRepository.php @@ -72,7 +72,7 @@ class TorrentRepository extends BaseRepository if (empty($searchBox)) { throw new NexusException(nexus_trans("upload.invalid_section")); } - if ($searchBox->isSectionSpecial() && !Permission::canViewSpecialSection()) { + if (!$searchBox->isSectionBrowse() && $searchBox->isSectionSpecial() && !Permission::canViewSpecialSection()) { throw new InsufficientPermissionException(); } $categoryIdList = $searchBox->categories()->pluck('id')->toArray();