mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
/** @phpstan-var \Twig\Environment $Twig */
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gazelle;
|
|
|
|
if (!$Viewer->permitted('site_torrents_notify')) {
|
|
Error403::error();
|
|
}
|
|
|
|
echo $Twig->render('user/edit-notification-filter.twig', [
|
|
'list' => [
|
|
...new User\Notification($Viewer)->filterList(new Manager\User()),
|
|
[
|
|
'ID' => false,
|
|
'Label' => '',
|
|
'Artists' => '',
|
|
'ExcludeVA' => false,
|
|
'NewGroupsOnly' => true,
|
|
'Tags' => '',
|
|
'NotTags' => '',
|
|
'RecordLabels' => [],
|
|
'ReleaseTypes' => [],
|
|
'Categories' => [],
|
|
'Formats' => [],
|
|
'Encodings' => [],
|
|
'Media' => [],
|
|
'FromYear' => '',
|
|
'ToYear' => '',
|
|
'Users' => '',
|
|
]
|
|
],
|
|
'release_type' => new ReleaseType()->list(),
|
|
'viewer' => $Viewer,
|
|
]);
|