Commit f398f9055c33404556e8147ecc1740f65e8ca988
1 parent
762bd70c
Exists in
master
and in
79 other branches
Fix software info block for no logged users
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
views/blocks/software_information.html.erb
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 | <%= link_to profile_image(block.owner, :big) +"\n", profile.url %> |
13 | 13 | </span> |
14 | 14 | <div class='admin-link'> |
15 | - <% if block.owner.admins.include?(current_user.person) %> | |
15 | + <% if current_user && block.owner.admins.include?(current_user.person) %> | |
16 | 16 | <%= link_to _('Control panel'), block.owner.admin_url %> |
17 | 17 | <% end %> |
18 | 18 | </div> | ... | ... |