From b62e586df484922a45cb5d05fc7017926c745d54 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 15 Dec 2008 19:28:30 -0300 Subject: [PATCH] ActionItem862: no publishing if CMS is disabled. --- app/views/content_viewer/view_page.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/content_viewer/view_page.rhtml b/app/views/content_viewer/view_page.rhtml index 96ce5fa..5f49129 100644 --- a/app/views/content_viewer/view_page.rhtml +++ b/app/views/content_viewer/view_page.rhtml @@ -39,7 +39,7 @@ <%= link_to content_tag( 'span', _('Delete') ), { :controller => 'cms', :action => 'destroy', :id => @page }, :class => 'button with-text icon-delete' %> - <% if profile.kind_of?(Person) %> + <% if profile.kind_of?(Person) && !environment.enabled?('disable_cms') %> <%= link_to content_tag( 'span', _('Spread this') ), { :controller => 'cms', :action => 'publish', :id => @page }, :class => 'button with-text icon-spread' %> -- libgit2 0.21.2