X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/c4a26421caba8b697d9aa197bb2a5c55b7e2c5ff..da2d6e5537e9fdcd6f424ea1cc8ab6ef8f45727e:/issue/index.php diff --git a/issue/index.php b/issue/index.php index e8a36d2..87b22a3 100644 --- a/issue/index.php +++ b/issue/index.php @@ -15,7 +15,7 @@ if ($id and ctype_digit($id)) { $Page->title .= ': '.htmlspecialchars($Issue->subject); $Page->teaser = $Issue->body; - if (!$User) return; + if ($Page->api) return; $Page->body = $replies; # find image print "

{$Page->title}

\n"; @@ -41,7 +41,6 @@ if ($id and ctype_digit($id)) { print "\n"; return; } -elseif (!$User) return; if ($_POST) { require_once 'upload.inc.php'; @@ -56,6 +55,7 @@ if ($_POST) { } $_POST = []; } +if ($Page->api) return; $subsql = "SELECT count(*) FROM comments WHERE page=i.page||'/'||i.id"; $cols = "*, ($subsql AND message IS NOT NULL) AS replycount";