1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Check permissions in Template

This commit is contained in:
Tim Düsterhus 2011-12-26 12:46:33 +01:00
parent 91bab27535
commit 7852f07242

View File

@ -305,9 +305,11 @@
<div>
<ul>
{foreach from=$rooms item='roomListRoom'}
{if $roomListRoom->canEnter()}
<li{if $roomListRoom->roomID == $room->roomID} class="activeMenuItem"{/if}>
<a href="{link controller='Chat' object=$roomListRoom}{/link}" class="chatRoom">{$roomListRoom}</a>
</li>
{/if}
{/foreach}
</ul>
</div>