From b2c13d22d0c9e3b34480477e55749a09349af270 Mon Sep 17 00:00:00 2001 From: posweg Date: Tue, 1 Sep 2020 12:14:34 +0000 Subject: [PATCH] Fix author not seeing self priv questions --- action/reply.php | 1 + user.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/action/reply.php b/action/reply.php index d5238ab..a1e544d 100644 --- a/action/reply.php +++ b/action/reply.php @@ -1,6 +1,7 @@ query("SELECT * FROM users WHERE id = " . $h_question["by"] . ";")->fetchArray(SQLITE3_ASSOC); $q_key = md5($h_question["question"]); - if($p_user["id"] == $h_question["user"] and ($h_question["private"] != 1 or $q_md5 != $_GET["key"])){ // Only show question that are for this user + if($p_user["id"] == $h_question["user"] and ($h_question["private"] != 1 or $q_md5 != $_GET["key"] or $is_current_user)){ // Only show question that are for this user echo('
');