From fbb0ccc4a9437c5d891e7797dba62e6db9b0461d Mon Sep 17 00:00:00 2001 From: AurelioAHeckert Date: Mon, 3 Mar 2008 17:31:54 +0000 Subject: [PATCH] ActionItem218: show buttons only to logged users --- app/views/profile/communities.rhtml | 2 +- app/views/profile/enterprises.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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