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 | 35 | <%= link_to content_tag( 'span', label_for_edit_article(@page) ), |
36 | 36 | { :controller => 'cms', :action => 'edit', :id => @page }, |
37 | 37 | :class => 'button with-text icon-edit' %> |
38 | - <% if !profile.kind_of?(Enterprise) %> | |
38 | + <% if !(profile.kind_of?(Enterprise) && environment.enabled?('disable_cms')) %> | |
39 | 39 | <%= link_to content_tag( 'span', _('Delete') ), |
40 | 40 | { :controller => 'cms', :action => 'destroy', :id => @page }, |
41 | 41 | :class => 'button with-text icon-delete' %> | ... | ... |