Add permission check to usersOnlineInfoBox
authorMatthias Schmidt <gravatronics@live.com>
Wed, 9 Jul 2014 17:03:23 +0000 (19:03 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 9 Jul 2014 17:03:23 +0000 (19:03 +0200)
com.woltlab.wcf/templates/usersOnlineInfoBox.tpl

index d873bd33091f85324b1e2a92f34c8af2d16a2911..5e6be88120874e70fb53dfb73ae2e8075beef0d0 100644 (file)
@@ -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]}
        <li class="box32 usersOnlineInfoBox">
                <span class="icon icon32 icon-user"></span>
                
@@ -27,4 +27,4 @@
                        {/if}
                </div>
        </li>
-{/if}
\ No newline at end of file
+{/if}