mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
rollback commit 246fdda4fb causes error
This commit is contained in:
parent
246fdda4fb
commit
be248963e9
1 changed files with 10 additions and 10 deletions
|
|
@ -57,7 +57,7 @@ class TorrentController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sensitive filter
|
// Sensitive filter
|
||||||
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive())
|
if (!$user->isModerator() && $user->isSensitive())
|
||||||
{
|
{
|
||||||
throw $this->createNotFoundException();
|
throw $this->createNotFoundException();
|
||||||
}
|
}
|
||||||
|
|
@ -234,7 +234,7 @@ class TorrentController extends AbstractController
|
||||||
$total = $torrentService->findTorrentsTotal(
|
$total = $torrentService->findTorrentsTotal(
|
||||||
$query,
|
$query,
|
||||||
$user->getLocales(),
|
$user->getLocales(),
|
||||||
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
||||||
!$user->isModerator() ? true : null, // show approved content only for regular users
|
!$user->isModerator() ? true : null, // show approved content only for regular users
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -242,7 +242,7 @@ class TorrentController extends AbstractController
|
||||||
foreach ($torrentService->findTorrents(
|
foreach ($torrentService->findTorrents(
|
||||||
$query,
|
$query,
|
||||||
$user->getLocales(),
|
$user->getLocales(),
|
||||||
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
||||||
!$user->isModerator() ? true : null, // show approved content only for regular users
|
!$user->isModerator() ? true : null, // show approved content only for regular users
|
||||||
$this->getParameter('app.pagination'),
|
$this->getParameter('app.pagination'),
|
||||||
($page - 1) * $this->getParameter('app.pagination')
|
($page - 1) * $this->getParameter('app.pagination')
|
||||||
|
|
@ -403,7 +403,7 @@ class TorrentController extends AbstractController
|
||||||
$total = $torrentService->findTorrentsTotal(
|
$total = $torrentService->findTorrentsTotal(
|
||||||
[],
|
[],
|
||||||
$user->getLocales(),
|
$user->getLocales(),
|
||||||
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
||||||
!$user->isModerator() ? true : null, // show approved content only for regular users
|
!$user->isModerator() ? true : null, // show approved content only for regular users
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -412,7 +412,7 @@ class TorrentController extends AbstractController
|
||||||
foreach ($torrentService->findTorrents(
|
foreach ($torrentService->findTorrents(
|
||||||
[],
|
[],
|
||||||
$user->getLocales(),
|
$user->getLocales(),
|
||||||
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
||||||
!$user->isModerator() ? true : null, // show approved content only for regular users
|
!$user->isModerator() ? true : null, // show approved content only for regular users
|
||||||
$this->getParameter('app.pagination'),
|
$this->getParameter('app.pagination'),
|
||||||
($page - 1) * $this->getParameter('app.pagination')
|
($page - 1) * $this->getParameter('app.pagination')
|
||||||
|
|
@ -560,7 +560,7 @@ class TorrentController extends AbstractController
|
||||||
$total = $torrentService->findTorrentsTotal(
|
$total = $torrentService->findTorrentsTotal(
|
||||||
$query,
|
$query,
|
||||||
$user->getLocales(),
|
$user->getLocales(),
|
||||||
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
||||||
!$user->isModerator() ? true : null // show approved content only for regular users
|
!$user->isModerator() ? true : null // show approved content only for regular users
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -569,7 +569,7 @@ class TorrentController extends AbstractController
|
||||||
foreach ($torrentService->findTorrents(
|
foreach ($torrentService->findTorrents(
|
||||||
$query,
|
$query,
|
||||||
$user->getLocales(),
|
$user->getLocales(),
|
||||||
!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all
|
||||||
!$user->isModerator() ? true : null, // show approved content only for regular users
|
!$user->isModerator() ? true : null, // show approved content only for regular users
|
||||||
$this->getParameter('app.pagination'),
|
$this->getParameter('app.pagination'),
|
||||||
($page - 1) * $this->getParameter('app.pagination')
|
($page - 1) * $this->getParameter('app.pagination')
|
||||||
|
|
@ -1808,7 +1808,7 @@ class TorrentController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sensitive filter
|
// Sensitive filter
|
||||||
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive())
|
if (!$user->isModerator() && $user->isSensitive())
|
||||||
{
|
{
|
||||||
throw $this->createNotFoundException();
|
throw $this->createNotFoundException();
|
||||||
}
|
}
|
||||||
|
|
@ -1935,7 +1935,7 @@ class TorrentController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sensitive filter
|
// Sensitive filter
|
||||||
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive())
|
if (!$user->isModerator() && $user->isSensitive())
|
||||||
{
|
{
|
||||||
throw $this->createNotFoundException();
|
throw $this->createNotFoundException();
|
||||||
}
|
}
|
||||||
|
|
@ -2059,7 +2059,7 @@ class TorrentController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sensitive filter
|
// Sensitive filter
|
||||||
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && $user->isSensitive())
|
if (!$user->isModerator() && $user->isSensitive())
|
||||||
{
|
{
|
||||||
throw $this->createNotFoundException();
|
throw $this->createNotFoundException();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue