mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +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)) {
|
if (empty($searchBox)) {
|
||||||
throw new NexusException(nexus_trans("upload.invalid_section"));
|
throw new NexusException(nexus_trans("upload.invalid_section"));
|
||||||
}
|
}
|
||||||
if ($searchBox->isSectionSpecial() && !Permission::canViewSpecialSection()) {
|
if (!$searchBox->isSectionBrowse() && $searchBox->isSectionSpecial() && !Permission::canViewSpecialSection()) {
|
||||||
throw new InsufficientPermissionException();
|
throw new InsufficientPermissionException();
|
||||||
}
|
}
|
||||||
$categoryIdList = $searchBox->categories()->pluck('id')->toArray();
|
$categoryIdList = $searchBox->categories()->pluck('id')->toArray();
|
||||||
|
|||||||
Reference in New Issue
Block a user