Commit ae30560ee3944b2f70c948b90afa11de28511383

Authored by AntonioTerceiro
1 parent bf6b6007

ActionItem443: don't list private profiles

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2291 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/views/search/_display_results.rhtml
... ... @@ -29,6 +29,7 @@
29 29 <ul>
30 30 <% hit_pos = 0 %>
31 31 <% results.each do |hit| %>
  32 + <% next if hit.respond_to?(:public_profile) && !hit.public_profile %>
32 33 <%= render :partial => partial,
33 34 :object => hit,
34 35 :locals => { :pos => ( hit_pos += 1 ) } %>
... ...