summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Sutcliffe <dansut@users.sourceforge.net>2010-03-18 17:59:42 +0000
committerDaniel Sutcliffe <dansut@users.sourceforge.net>2010-03-18 17:59:42 +0000
commita575f1c736e5864bf6c61de2a6b4893f71b08fa5 (patch)
tree7e9481d1b43d6ca536a5e7eb0b88dbd2e374e084 /templates
parentf7da956b854c7bb9c3ab5b29ec8469dfe788fd4c (diff)
downloadarticles-a575f1c736e5864bf6c61de2a6b4893f71b08fa5.tar.gz
articles-a575f1c736e5864bf6c61de2a6b4893f71b08fa5.tar.bz2
articles-a575f1c736e5864bf6c61de2a6b4893f71b08fa5.zip
Make the p_liberty_read_comments permission actually be required to see comments
Diffstat (limited to 'templates')
-rw-r--r--templates/article_display.tpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/article_display.tpl b/templates/article_display.tpl
index 23f28be..511e76d 100644
--- a/templates/article_display.tpl
+++ b/templates/article_display.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_articles/templates/article_display.tpl,v 1.55 2009/01/08 21:21:59 squareing Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_articles/templates/article_display.tpl,v 1.56 2010/03/18 17:59:42 dansut Exp $ *}
{strip}
{if !$showDescriptionsOnly}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='nav' serviceHash=$article}
@@ -88,7 +88,9 @@
<a class="more" href="{$article.display_url}">{tr}Read More&hellip;{/tr}</a>
{/if}
- {if $article.allow_comments eq 'y'}
+ {if $article.allow_comments eq 'y' &&
+ ($gContent->hasUserPermission( 'p_articles_post_comments' ) ||
+ $gContent->hasUserPermission( 'p_articles_read_comments' )) }
{if $spacer}&nbsp; &bull; &nbsp;{/if}
{if $showDescriptionsOnly}<a href="{$article.display_url}#editcomments">{/if}
{$article.num_comments}