From 404acdb9c8a2b4910dfb635666f8a6f7136d888b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 9 Jul 2014 19:03:23 +0200 Subject: [PATCH] Add permission check to usersOnlineInfoBox --- com.woltlab.wcf/templates/usersOnlineInfoBox.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} -- 2.20.1