From: Matthias Schmidt Date: Wed, 9 Jul 2014 17:03:23 +0000 (+0200) Subject: Add permission check to usersOnlineInfoBox X-Git-Tag: 2.1.0_Alpha_1~592 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=404acdb9c8a2b4910dfb635666f8a6f7136d888b;p=GitHub%2FWoltLab%2FWCF.git Add permission check to usersOnlineInfoBox --- diff --git a/com.woltlab.wcf/templates/usersOnlineInfoBox.tpl b/com.woltlab.wcf/templates/usersOnlineInfoBox.tpl index d873bd3309..5e6be88120 100644 --- a/com.woltlab.wcf/templates/usersOnlineInfoBox.tpl +++ b/com.woltlab.wcf/templates/usersOnlineInfoBox.tpl @@ -1,5 +1,5 @@ {if !$usersOnlineShowRecord|isset}{assign var='usersOnlineShowRecord' value=true}{/if} -{if MODULE_USERS_ONLINE && $usersOnlineList->stats[total]} +{if MODULE_USERS_ONLINE && $__wcf->session->getPermission('user.profile.canViewUsersOnlineList') && $usersOnlineList->stats[total]}
  • @@ -27,4 +27,4 @@ {/if}
  • -{/if} \ No newline at end of file +{/if}