From 1d4adca8665df6d694264a683a7654f0a0091a13 Mon Sep 17 00:00:00 2001 From: Luciano Prestes Cavalcanti Date: Tue, 15 Sep 2015 16:50:05 +0200 Subject: [PATCH] Fix bug when open a profile page --- views/profile/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/profile/index.html.erb b/views/profile/index.html.erb index 199efef..6e2d6c2 100644 --- a/views/profile/index.html.erb +++ b/views/profile/index.html.erb @@ -11,7 +11,7 @@ <% end %>
- <%= render "blocks/profile_info_actions/join_leave_community" %> + <%= render "blocks/profile_info_actions/join_leave_community" if profile.class == "Community" %> <% if !user.nil? && user.has_permission?('edit_profile', profile) %>
<%= button :control_panel, _('Control Panel'), profile.admin_url %> -- libgit2 0.21.2