mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
api torrent list compatible with special section use normal section searchBox
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user