Files
ops-Gazelle/sections/reportsv2/ajax_update_comment.php
T

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'] ?? '');