[-] MO productcomments: prevents guests to add comments when guest comment is disabled in backoffice

This commit is contained in:
Fabio Chelly
2013-09-27 11:27:58 +02:00
parent 19fb32545d
commit 345d4cdbcf
2 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -76,11 +76,13 @@ var moderation_active = {$moderation_active};
</div>
{/if}
{/foreach}
{if (!$too_early AND ($logged OR $allow_guests))}
<p class="align_center">
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Write your review' mod='productcomments'} !</a>
</p>
{/if}
{else}
{if ($too_early == false AND ($logged OR $allow_guests))}
{if (!$too_early AND ($logged OR $allow_guests))}
<p class="align_center">
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Be the first to write your review' mod='productcomments'} !</a>
</p>