Commit 7d9f9816449350035f8d94f13f9bd092d47ae659

Authored by Braulio Bhavamitra
1 parent c0cdbbe8

Extend functionally to organizations

app/views/content_viewer/_article_toolbar.html.erb
... ... @@ -35,7 +35,7 @@
35 35 <%= button('upload-file', _('Upload files'), profile.admin_url.merge(:controller => 'cms', :action => 'upload_files', :parent_id => (@page.folder? ? @page : @page.parent))) unless remove_content_button(:upload, @page)%>
36 36 <% end %>
37 37  
38   - <% if !@page.allow_create?(user) && profile.community? && (@page.blog? || @page.parent && @page.parent.blog?) && !remove_content_button(:suggest, @page) %>
  38 + <% if !@page.allow_create?(user) && profile.organization? && (@page.blog? || @page.parent && @page.parent.blog?) && !remove_content_button(:suggest, @page) %>
39 39 <% content = content_tag( 'span', _('Suggest an article') ) %>
40 40 <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'suggest_an_article'}) %>
41 41 <% options = {:id => 'suggest-article-link'} %>
... ...