<% if (chat.allowed_groups) { %>
<% chat.allowed_groups.forEach(function(group, number){%>
<%=group.name%>
<% }); %>
<% } %>