Files
ops-Gazelle/sections/comments/take_delete.php
T

13 lines
238 B
PHP

<?php
if (!$Viewer->permitted('site_moderate_forums')) {
error(403);
}
authorize();
$comment = (new Gazelle\Manager\Comment)->findById((int)($_REQUEST['postid'] ?? 0));
if (is_null($comment)) {
error(404);
}
$comment->remove();