From 5c78c2c87f5340f99548374bed1a5e1722ee8577 Mon Sep 17 00:00:00 2001 From: vadik likholetov Date: Tue, 12 Dec 2023 22:15:38 +0200 Subject: [PATCH] hide drawing widget and text of the comments for not logged in --- templates/sar_details.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/templates/sar_details.html b/templates/sar_details.html index 60c0e4c..04c88bd 100644 --- a/templates/sar_details.html +++ b/templates/sar_details.html @@ -75,11 +75,12 @@
{# Comment text #}
- -

{{ comment.text }}

-
- {% if is_logged_in %} + +

{{ comment.text }}

+
+ {% if current_user.id == comment.user_id or current_user.id == 1 or current_user.id == sar.SARCall.user_id %}