minor bug fix, no longer showing edit button for users except for the author.

This commit is contained in:
2025-04-08 17:01:58 -06:00
parent e829e2e566
commit 6b1abfbc8f
+1 -1
View File
@@ -104,7 +104,7 @@ function article_page_from_markdown($article_id)
<div class="row">
<h3>' . $article['title'] . '</h3>
' . (isset($article_id) ? '<a href="compose.php?article_id=' . $article_id . '"><i class="nf nf-fa-edit"></i></a>' : '') . '
' . (isset($_COOKIE['user_id']) && $_COOKIE['user_id'] == $article['author_id'] ? '<a href="compose.php?article_id=' . $article_id . '"><i class="nf nf-fa-edit"></i></a>' : '') . '
</div>
<div class="row">
<div class="col_right">