diff --git a/app/views/profile/communities.rhtml b/app/views/profile/communities.rhtml
index 6a705bc..dc4588f 100644
--- a/app/views/profile/communities.rhtml
+++ b/app/views/profile/communities.rhtml
@@ -13,7 +13,7 @@
<%= button :back, _('Go back'), { :controller => 'profile' },
:help => _('Back to the page where you come from.') %>
<%= button :add, _('Create a new community'),
- :controller => 'memberships', :action => 'new_community' %>
+ :controller => 'memberships', :action => 'new_community' if logged_in? %>
<% end %>
diff --git a/app/views/profile/enterprises.rhtml b/app/views/profile/enterprises.rhtml
index ec38f3e..455cfc9 100644
--- a/app/views/profile/enterprises.rhtml
+++ b/app/views/profile/enterprises.rhtml
@@ -13,7 +13,7 @@
<%= button :back, _('Go back'), { :controller => 'profile' },
:help => _('Back to the page where you come from.') %>
<%= button :add, _('Register a new Enterprise'),
- :controller => 'enterprise_registration' %>
+ :controller => 'enterprise_registration' if logged_in? %>
<% end %>
--
libgit2 0.21.2