mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-22 01:03:21 -04:00
17 lines
323 B
PHP
17 lines
323 B
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gazelle;
|
|
|
|
if (!$Viewer->permitted('admin_reports')) {
|
|
Error403::error();
|
|
}
|
|
|
|
authorize();
|
|
|
|
new Manager\Torrent\Report(new Manager\Torrent())
|
|
->findById((int)($_POST['reportid'] ?? 0))
|
|
?->modifyComment($_POST['comment'] ?? '');
|