minor bug fix, no longer showing edit button for users except for the author.
This commit is contained in:
@@ -104,7 +104,7 @@ function article_page_from_markdown($article_id)
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h3>' . $article['title'] . '</h3>
|
<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>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col_right">
|
<div class="col_right">
|
||||||
|
|||||||
Reference in New Issue
Block a user