|
|
|
@ -234,7 +234,7 @@ class TorrentController extends AbstractController
@@ -234,7 +234,7 @@ class TorrentController extends AbstractController
|
|
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
|
$query, |
|
|
|
|
$user->getLocales(), |
|
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -242,7 +242,7 @@ class TorrentController extends AbstractController
@@ -242,7 +242,7 @@ class TorrentController extends AbstractController
|
|
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
|
$query, |
|
|
|
|
$user->getLocales(), |
|
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
@ -403,7 +403,7 @@ class TorrentController extends AbstractController
@@ -403,7 +403,7 @@ class TorrentController extends AbstractController
|
|
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
|
[], |
|
|
|
|
$user->getLocales(), |
|
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -412,7 +412,7 @@ class TorrentController extends AbstractController
@@ -412,7 +412,7 @@ class TorrentController extends AbstractController
|
|
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
|
[], |
|
|
|
|
$user->getLocales(), |
|
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
@ -560,7 +560,7 @@ class TorrentController extends AbstractController
@@ -560,7 +560,7 @@ class TorrentController extends AbstractController
|
|
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
|
$query, |
|
|
|
|
$user->getLocales(), |
|
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() ? true : null // show approved content only for regular users |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -569,7 +569,7 @@ class TorrentController extends AbstractController
@@ -569,7 +569,7 @@ class TorrentController extends AbstractController
|
|
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
|
$query, |
|
|
|
|
$user->getLocales(), |
|
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
|