|
|
@ -62,8 +62,9 @@ class TorrentController extends AbstractController |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Approved filter |
|
|
|
// Access filter |
|
|
|
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && !$torrent->isApproved()) |
|
|
|
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && |
|
|
|
|
|
|
|
(!$torrent->isStatus() || !$torrent->isApproved())) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
} |
|
|
|
} |
|
|
@ -112,7 +113,8 @@ class TorrentController extends AbstractController |
|
|
|
[ |
|
|
|
[ |
|
|
|
'user' => $user, |
|
|
|
'user' => $user, |
|
|
|
'id' => $user->getId(), |
|
|
|
'id' => $user->getId(), |
|
|
|
'moderator' => $user->isModerator() |
|
|
|
'moderator' => $user->isModerator(), |
|
|
|
|
|
|
|
'owner' => $user->getId() === $torrent->getUserId(), |
|
|
|
], |
|
|
|
], |
|
|
|
'torrent' => |
|
|
|
'torrent' => |
|
|
|
[ |
|
|
|
[ |
|
|
@ -129,6 +131,7 @@ class TorrentController extends AbstractController |
|
|
|
'locales' => $torrent->getLocales(), |
|
|
|
'locales' => $torrent->getLocales(), |
|
|
|
'sensitive' => $torrent->isSensitive(), |
|
|
|
'sensitive' => $torrent->isSensitive(), |
|
|
|
'approved' => $torrent->isApproved(), |
|
|
|
'approved' => $torrent->isApproved(), |
|
|
|
|
|
|
|
'status' => $torrent->isStatus(), |
|
|
|
'download' => |
|
|
|
'download' => |
|
|
|
[ |
|
|
|
[ |
|
|
|
'file' => |
|
|
|
'file' => |
|
|
@ -226,24 +229,30 @@ class TorrentController extends AbstractController |
|
|
|
$activityService |
|
|
|
$activityService |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
|
|
|
|
// Init request |
|
|
|
// Init request |
|
|
|
$query = $request->get('query') ? explode(' ', urldecode($request->get('query'))) : []; |
|
|
|
$query = $request->get('query') ? explode(' ', urldecode($request->get('query'))) : []; |
|
|
|
$page = $request->get('page') ? (int) $request->get('page') : 1; |
|
|
|
$page = $request->get('page') ? (int) $request->get('page') : 1; |
|
|
|
|
|
|
|
|
|
|
|
// Get total torrents |
|
|
|
// Get total torrents |
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
$query, |
|
|
|
$query, |
|
|
|
$user->getLocales(), |
|
|
|
$user->getLocales(), |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, |
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
|
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$torrents = []; |
|
|
|
$torrents = []; |
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
$query, |
|
|
|
$query, |
|
|
|
$user->getLocales(), |
|
|
|
$user->getLocales(), |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, |
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
|
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
) as $torrent) |
|
|
|
) as $torrent) |
|
|
@ -254,18 +263,6 @@ class TorrentController extends AbstractController |
|
|
|
throw $this->createNotFoundException(); // @TODO exception |
|
|
|
throw $this->createNotFoundException(); // @TODO exception |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Generate keywords |
|
|
|
|
|
|
|
/* @TODO deprecated, based on active search result |
|
|
|
|
|
|
|
$keywords = []; |
|
|
|
|
|
|
|
foreach ($torrent->getKeywords() as $keyword) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (in_array($keyword, $query)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$keywords[] = $keyword; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Generate keywords by extension |
|
|
|
// Generate keywords by extension |
|
|
|
$keywords = []; |
|
|
|
$keywords = []; |
|
|
|
|
|
|
|
|
|
|
@ -296,6 +293,7 @@ class TorrentController extends AbstractController |
|
|
|
'added' => $torrent->getAdded(), |
|
|
|
'added' => $torrent->getAdded(), |
|
|
|
'approved' => $torrent->isApproved(), |
|
|
|
'approved' => $torrent->isApproved(), |
|
|
|
'sensitive' => $torrent->isSensitive(), |
|
|
|
'sensitive' => $torrent->isSensitive(), |
|
|
|
|
|
|
|
'status' => $torrent->isStatus(), |
|
|
|
'file' => |
|
|
|
'file' => |
|
|
|
[ |
|
|
|
[ |
|
|
|
'name' => $file->getName(), |
|
|
|
'name' => $file->getName(), |
|
|
@ -401,19 +399,23 @@ class TorrentController extends AbstractController |
|
|
|
|
|
|
|
|
|
|
|
// Get total torrents |
|
|
|
// Get total torrents |
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
[], |
|
|
|
[], |
|
|
|
$user->getLocales(), |
|
|
|
$user->getLocales(), |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, |
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
|
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Create torrents list |
|
|
|
// Create torrents list |
|
|
|
$torrents = []; |
|
|
|
$torrents = []; |
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
[], |
|
|
|
[], |
|
|
|
$user->getLocales(), |
|
|
|
$user->getLocales(), |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, |
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
|
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
) as $torrent) |
|
|
|
) as $torrent) |
|
|
@ -454,6 +456,7 @@ class TorrentController extends AbstractController |
|
|
|
'added' => $torrent->getAdded(), |
|
|
|
'added' => $torrent->getAdded(), |
|
|
|
'approved' => $torrent->isApproved(), |
|
|
|
'approved' => $torrent->isApproved(), |
|
|
|
'sensitive' => $torrent->isSensitive(), |
|
|
|
'sensitive' => $torrent->isSensitive(), |
|
|
|
|
|
|
|
'status' => $torrent->isStatus(), |
|
|
|
'file' => |
|
|
|
'file' => |
|
|
|
[ |
|
|
|
[ |
|
|
|
'name' => $file->getName(), |
|
|
|
'name' => $file->getName(), |
|
|
@ -558,19 +561,23 @@ class TorrentController extends AbstractController |
|
|
|
|
|
|
|
|
|
|
|
// Get total torrents |
|
|
|
// Get total torrents |
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
$query, |
|
|
|
$query, |
|
|
|
$user->getLocales(), |
|
|
|
$user->getLocales(), |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, |
|
|
|
!$user->isModerator() ? true : null // show approved content only for regular users |
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
|
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Create torrents list |
|
|
|
// Create torrents list |
|
|
|
$torrents = []; |
|
|
|
$torrents = []; |
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
$query, |
|
|
|
$query, |
|
|
|
$user->getLocales(), |
|
|
|
$user->getLocales(), |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, // hide on sensitive mode enabled or show all |
|
|
|
!$user->isModerator() && $user->isSensitive() ? false : null, |
|
|
|
!$user->isModerator() ? true : null, // show approved content only for regular users |
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
|
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
) as $torrent) |
|
|
|
) as $torrent) |
|
|
@ -624,6 +631,13 @@ class TorrentController extends AbstractController |
|
|
|
ActivityService $activityService |
|
|
|
ActivityService $activityService |
|
|
|
): Response |
|
|
|
): Response |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// Init user |
|
|
|
|
|
|
|
$user = $this->initUser( |
|
|
|
|
|
|
|
$request, |
|
|
|
|
|
|
|
$userService, |
|
|
|
|
|
|
|
$activityService |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Init request |
|
|
|
// Init request |
|
|
|
$query = $request->get('query') ? explode(' ', urldecode($request->get('query'))) : []; |
|
|
|
$query = $request->get('query') ? explode(' ', urldecode($request->get('query'))) : []; |
|
|
|
$page = $request->get('page') ? (int) $request->get('page') : 1; |
|
|
|
$page = $request->get('page') ? (int) $request->get('page') : 1; |
|
|
@ -638,19 +652,23 @@ class TorrentController extends AbstractController |
|
|
|
|
|
|
|
|
|
|
|
// Get total torrents |
|
|
|
// Get total torrents |
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
$total = $torrentService->findTorrentsTotal( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
$query, |
|
|
|
$query, |
|
|
|
$locales, |
|
|
|
$locales, |
|
|
|
$sensitive, |
|
|
|
!$user->isModerator() ? $sensitive : null, |
|
|
|
true, // approved only |
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
|
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Create torrents list |
|
|
|
// Create torrents list |
|
|
|
$torrents = []; |
|
|
|
$torrents = []; |
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
foreach ($torrentService->findTorrents( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
$query, |
|
|
|
$query, |
|
|
|
$locales, |
|
|
|
$locales, |
|
|
|
$sensitive, |
|
|
|
!$user->isModerator() ? $sensitive : null, |
|
|
|
true, // approved only |
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
|
|
|
|
!$user->isModerator() ? true : null, |
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
$this->getParameter('app.pagination'), |
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
($page - 1) * $this->getParameter('app.pagination') |
|
|
|
) as $torrent) |
|
|
|
) as $torrent) |
|
|
@ -867,7 +885,8 @@ class TorrentController extends AbstractController |
|
|
|
time(), |
|
|
|
time(), |
|
|
|
(array) $locales, |
|
|
|
(array) $locales, |
|
|
|
(bool) $request->get('sensitive'), |
|
|
|
(bool) $request->get('sensitive'), |
|
|
|
$user->isApproved() |
|
|
|
$user->isApproved(), |
|
|
|
|
|
|
|
$user->isStatus() |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Add activity event |
|
|
|
// Add activity event |
|
|
@ -898,7 +917,7 @@ class TorrentController extends AbstractController |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Torrent moderation |
|
|
|
#[Route( |
|
|
|
#[Route( |
|
|
|
'/{_locale}/torrent/{torrentId}/approve/toggle', |
|
|
|
'/{_locale}/torrent/{torrentId}/approve/toggle', |
|
|
|
name: 'torrent_approve_toggle', |
|
|
|
name: 'torrent_approve_toggle', |
|
|
@ -975,6 +994,82 @@ class TorrentController extends AbstractController |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[Route( |
|
|
|
|
|
|
|
'/{_locale}/torrent/{torrentId}/status/toggle', |
|
|
|
|
|
|
|
name: 'torrent_status_toggle', |
|
|
|
|
|
|
|
requirements: |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'_locale' => '%app.locales%', |
|
|
|
|
|
|
|
'torrentId' => '\d+', |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
methods: |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'GET' |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
)] |
|
|
|
|
|
|
|
public function status( |
|
|
|
|
|
|
|
Request $request, |
|
|
|
|
|
|
|
UserService $userService, |
|
|
|
|
|
|
|
TorrentService $torrentService, |
|
|
|
|
|
|
|
ActivityService $activityService |
|
|
|
|
|
|
|
): Response |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// Init user |
|
|
|
|
|
|
|
$user = $this->initUser( |
|
|
|
|
|
|
|
$request, |
|
|
|
|
|
|
|
$userService, |
|
|
|
|
|
|
|
$activityService |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Init torrent |
|
|
|
|
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check permissions |
|
|
|
|
|
|
|
if (!($user->isModerator() || $user->getId() == $torrent->getUserId())) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// @TODO |
|
|
|
|
|
|
|
throw new \Exception( |
|
|
|
|
|
|
|
$translator->trans('Access denied') |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Register activity event |
|
|
|
|
|
|
|
if (!$torrent->isStatus()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$activityService->addEventTorrentStatusAdd( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
|
|
|
|
$torrent->getId(), |
|
|
|
|
|
|
|
time() |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$activityService->addEventTorrentStatusDelete( |
|
|
|
|
|
|
|
$user->getId(), |
|
|
|
|
|
|
|
$torrent->getId(), |
|
|
|
|
|
|
|
time() |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Update status |
|
|
|
|
|
|
|
$torrentService->toggleTorrentStatus( |
|
|
|
|
|
|
|
$torrent->getId() |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Redirect back to form |
|
|
|
|
|
|
|
return $this->redirectToRoute( |
|
|
|
|
|
|
|
'torrent_info', |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'_locale' => $request->get('_locale'), |
|
|
|
|
|
|
|
'torrentId' => $torrent->getId() |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Torrent locales |
|
|
|
// Torrent locales |
|
|
|
#[Route( |
|
|
|
#[Route( |
|
|
|
'/{_locale}/torrent/{torrentId}/edit/locales/{torrentLocalesId}', |
|
|
|
'/{_locale}/torrent/{torrentId}/edit/locales/{torrentLocalesId}', |
|
|
@ -1807,14 +1902,9 @@ class TorrentController extends AbstractController |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Sensitive filter |
|
|
|
// Access filter |
|
|
|
if (!$user->isModerator() && $user->isSensitive()) |
|
|
|
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && |
|
|
|
{ |
|
|
|
(!$torrent->isStatus() || !$torrent->isApproved())) |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Approved filter |
|
|
|
|
|
|
|
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && !$torrent->isApproved()) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
} |
|
|
|
} |
|
|
@ -1934,14 +2024,9 @@ class TorrentController extends AbstractController |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Sensitive filter |
|
|
|
// Access filter |
|
|
|
if (!$user->isModerator() && $user->isSensitive()) |
|
|
|
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && |
|
|
|
{ |
|
|
|
(!$torrent->isStatus() || !$torrent->isApproved())) |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Approved filter |
|
|
|
|
|
|
|
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && !$torrent->isApproved()) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
} |
|
|
|
} |
|
|
@ -2058,14 +2143,9 @@ class TorrentController extends AbstractController |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Sensitive filter |
|
|
|
// Access filter |
|
|
|
if (!$user->isModerator() && $user->isSensitive()) |
|
|
|
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && |
|
|
|
{ |
|
|
|
(!$torrent->isStatus() || !$torrent->isApproved())) |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Approved filter |
|
|
|
|
|
|
|
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() && !$torrent->isApproved()) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
} |
|
|
|
} |
|
|
@ -2389,10 +2469,12 @@ class TorrentController extends AbstractController |
|
|
|
'locale' => $locale, |
|
|
|
'locale' => $locale, |
|
|
|
'locales' => $locales, |
|
|
|
'locales' => $locales, |
|
|
|
'torrents' => $torrentService->findTorrents( |
|
|
|
'torrents' => $torrentService->findTorrents( |
|
|
|
|
|
|
|
0, // no user session init, pass 0 |
|
|
|
[], // without keywords filter |
|
|
|
[], // without keywords filter |
|
|
|
$locales, // all system locales |
|
|
|
$locales, // all system locales |
|
|
|
null, // all sensitive levels |
|
|
|
null, // all sensitive levels |
|
|
|
true, // approved only |
|
|
|
true, // approved only |
|
|
|
|
|
|
|
true, // enabled only |
|
|
|
1000, // @TODO limit |
|
|
|
1000, // @TODO limit |
|
|
|
0 // offset |
|
|
|
0 // offset |
|
|
|
) |
|
|
|
) |
|
|
|