From ed857f69a04a848b08bbb356e1faf0883acdfb33 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Tue, 30 Jan 2018 15:55:27 +0300 Subject: [PATCH] Limiting commenting only for logged users --- apps/course/templates/course/blocks/comment.html | 2 ++ apps/course/templates/course/course.html | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/apps/course/templates/course/blocks/comment.html b/apps/course/templates/course/blocks/comment.html index 5e38b70f..1f338358 100644 --- a/apps/course/templates/course/blocks/comment.html +++ b/apps/course/templates/course/blocks/comment.html @@ -19,7 +19,9 @@
{{ node.content }}
+ {% if user.is_authenticated %} + {% endif %}
\ No newline at end of file diff --git a/apps/course/templates/course/course.html b/apps/course/templates/course/course.html index 938e3f03..d4d17581 100644 --- a/apps/course/templates/course/course.html +++ b/apps/course/templates/course/course.html @@ -202,12 +202,16 @@
+ {% if user.is_authenticated %}
+ {% else %} +
Только зарегистрированные пользователи могут оставлять комментарии.
+ {% endif %}