Commit 91c19b6e832e8d94098af772afe33067e8b6cacb
1 parent
b8513f02
Exists in
master
and in
29 other branches
ActionItem879: Enterprises cannot create articles
Only if the CMS is disabled
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/content_viewer/view_page.rhtml
@@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
35 | <%= link_to content_tag( 'span', label_for_edit_article(@page) ), | 35 | <%= link_to content_tag( 'span', label_for_edit_article(@page) ), |
36 | { :controller => 'cms', :action => 'edit', :id => @page }, | 36 | { :controller => 'cms', :action => 'edit', :id => @page }, |
37 | :class => 'button with-text icon-edit' %> | 37 | :class => 'button with-text icon-edit' %> |
38 | - <% if !profile.kind_of?(Enterprise) %> | 38 | + <% if !(profile.kind_of?(Enterprise) && environment.enabled?('disable_cms')) %> |
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' %> |