Fixed dead link
authorMarcel Werk <burntime@woltlab.com>
Thu, 14 Jul 2016 13:00:54 +0000 (15:00 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 14 Jul 2016 13:00:54 +0000 (15:00 +0200)
com.woltlab.wcf/templates/userInformationStatistics.tpl

index 08ea41fd8bc8b7c144b60294f33ad43d54d5bbc0..fcf5fc73306e45881c8794993655fc7ec628900a 100644 (file)
@@ -1,7 +1,7 @@
 {event name='statistics'}
 
 {if MODULE_LIKE && $user->likesReceived}
-       <dt><a href="{link controller='User' object=$user}{/link}#likes" class="jsTooltip" title="{lang}wcf.like.showLikesReceived{/lang}">{lang}wcf.like.likesReceived{/lang}</a></dt>
+       <dt>{if $__wcf->getSession()->getPermission('user.profile.canViewUserProfile') && $user->isAccessible('canViewProfile')}<a href="{link controller='User' object=$user}{/link}#likes" class="jsTooltip" title="{lang}wcf.like.showLikesReceived{/lang}">{lang}wcf.like.likesReceived{/lang}</a>{else}{lang}wcf.like.likesReceived{/lang}{/if}</dt>
        <dd>{#$user->likesReceived}</dd>
 {/if}