Commit b62e586df484922a45cb5d05fc7017926c745d54

Authored by Antonio Terceiro
1 parent e59b7b2d

ActionItem862: no publishing if CMS is disabled.

workaround ("armengue") asked by Vicente.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/content_viewer/view_page.rhtml
@@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
39 <%= link_to content_tag( 'span', _('Delete') ), 39 <%= link_to content_tag( 'span', _('Delete') ),
40 { :controller => 'cms', :action => 'destroy', :id => @page }, 40 { :controller => 'cms', :action => 'destroy', :id => @page },
41 :class => 'button with-text icon-delete' %> 41 :class => 'button with-text icon-delete' %>
42 - <% if profile.kind_of?(Person) %> 42 + <% if profile.kind_of?(Person) && !environment.enabled?('disable_cms') %>
43 <%= link_to content_tag( 'span', _('Spread this') ), 43 <%= link_to content_tag( 'span', _('Spread this') ),
44 { :controller => 'cms', :action => 'publish', :id => @page }, 44 { :controller => 'cms', :action => 'publish', :id => @page },
45 :class => 'button with-text icon-spread' %> 45 :class => 'button with-text icon-spread' %>