From 724fe6ceebe0cbb287c3828a6753bfe1f52a5724 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Tue, 8 Nov 2016 14:19:17 +0100 Subject: [PATCH] 'Join the conversation' wasn't accurate for subscribers without POST permission --- src/templates/nodes/custom/comment/list_embed.jade | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/templates/nodes/custom/comment/list_embed.jade b/src/templates/nodes/custom/comment/list_embed.jade index 15a21b7a..2a58eaf5 100644 --- a/src/templates/nodes/custom/comment/list_embed.jade +++ b/src/templates/nodes/custom/comment/list_embed.jade @@ -41,7 +41,7 @@ | {% elif current_user.is_authenticated %} - | {# * User is authenticated, but has no 'POST' permission #} + | {# * User is authenticated, but has no subscription or 'POST' permission #} .comment-reply-form .comment-reply-field.sign-in textarea( @@ -50,7 +50,12 @@ data-parent-id="{{ node_id }}", placeholder="") .sign-in - | Join the conversation! Subscribe to Blender Cloud now. + | {% if current_user.has_role('subscriber') %} + i.pi-lock + | Only project members can comment. + | {% else %} + | Join the conversation! Subscribe to Blender Cloud now. + | {% endif %} | {% else %} | {# * User is not autenticated #}