From 6b1abfbc8fdddd9298e01a6485c6b217d3e190d3 Mon Sep 17 00:00:00 2001 From: Josh Ashton Date: Tue, 8 Apr 2025 17:01:58 -0600 Subject: [PATCH] minor bug fix, no longer showing edit button for users except for the author. --- functions/article_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/article_functions.php b/functions/article_functions.php index 012d08e..ee81f72 100644 --- a/functions/article_functions.php +++ b/functions/article_functions.php @@ -104,7 +104,7 @@ function article_page_from_markdown($article_id)

' . $article['title'] . '

- ' . (isset($article_id) ? '' : '') . ' + ' . (isset($_COOKIE['user_id']) && $_COOKIE['user_id'] == $article['author_id'] ? '' : '') . '