mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-11 04:13:02 -04:00
14 lines
283 B
PHP
14 lines
283 B
PHP
<?php
|
|
|
|
if (!$Viewer->permitted('site_moderate_forums')) {
|
|
error(403);
|
|
}
|
|
authorize();
|
|
|
|
try {
|
|
$comment = (new Gazelle\Manager\Comment)->findById((int)($_REQUEST['postid'] ?? 0));
|
|
} catch (\Gazelle\Exception\ResourceNotFoundException $e) {
|
|
error(404);
|
|
}
|
|
$comment->remove();
|