Commit ae30560ee3944b2f70c948b90afa11de28511383
1 parent
bf6b6007
Exists in
master
and in
29 other branches
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,6 +29,7 @@ | ||
29 | <ul> | 29 | <ul> |
30 | <% hit_pos = 0 %> | 30 | <% hit_pos = 0 %> |
31 | <% results.each do |hit| %> | 31 | <% results.each do |hit| %> |
32 | + <% next if hit.respond_to?(:public_profile) && !hit.public_profile %> | ||
32 | <%= render :partial => partial, | 33 | <%= render :partial => partial, |
33 | :object => hit, | 34 | :object => hit, |
34 | :locals => { :pos => ( hit_pos += 1 ) } %> | 35 | :locals => { :pos => ( hit_pos += 1 ) } %> |