Commit 2b95ed8be7eceeeb36ac27c0abc1f144fa9c7df6
1 parent
77586e46
Exists in
master
and in
29 other branches
Restrict "Suggest an article" to comunity blogs
(ActionItem1732)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/content_viewer/view_page.rhtml
... | ... | @@ -51,7 +51,7 @@ |
51 | 51 | <% end %> |
52 | 52 | </div> |
53 | 53 | <% else %> |
54 | - <% if profile.community? %> | |
54 | + <% if profile.community? && (@page.blog? || @page.parent && @page.parent.blog?) %> | |
55 | 55 | <%= link_to content_tag( 'span', _('Suggest an article') ), profile.admin_url.merge({ :controller => 'cms', :action => 'suggest_an_article'}), :class => 'button with-text icon-new' %> |
56 | 56 | <% end %> |
57 | 57 | <% end %> | ... | ... |