diff --git a/app/views/categories/show.html.erb b/app/views/categories/show.html.erb index a44fcd02f83ded90a8bc58d3db4a9d64447b38b5..bf3413e6d1463e9e57e8047dd8b210b984083c22 100644 --- a/app/views/categories/show.html.erb +++ b/app/views/categories/show.html.erb @@ -32,8 +32,10 @@ class: "button is-muted is-outlined #{params[:sort] == 'age' ? 'is-active' : ''}" %> <%= link_to 'Score', query_url(sort: 'score'), class: "button is-muted is-outlined #{params[:sort] == 'score' ? 'is-active' : ''}" %> - <%= link_to 'Native', query_url(sort: 'native'), - class: "button is-muted is-outlined #{params[:sort] == 'native' ? 'is-active' : ''}" %> + <% if SiteSetting['AllowContentTransfer'] %> + <%= link_to 'Native', query_url(sort: 'native'), + class: "button is-muted is-outlined #{params[:sort] == 'native' ? 'is-active' : ''}" %> + <% end %> <% if @category.name == 'Q&A' %> <%= link_to 'Lottery', query_url(sort: 'lottery'), class: "button is-muted is-outlined #{params[:sort] == 'lottery' ? 'is-active' : ''}" %>