Fixed broken home page for anonymous users

This commit is contained in:
Marcin Kurczewski 2015-03-14 23:07:34 +01:00
parent 2e06422b62
commit d98474cc6a

View file

@ -1,5 +1,5 @@
<% function showUser(name) { %>
<% var showLink = canViewUsers && name %>
<% var showLink = typeof(canViewUsers) !== 'undefined' && canViewUsers && name %>
<% if (showLink) { %>
<a href="#/user/<%= name %>">