diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-17 14:51:32 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-17 14:51:59 +1100 |
commit | 871e2fda4fea4ada327031aaa30d2bbb5774956a (patch) | |
tree | 0cb8c16b198343e48000bf96b78f98705bd6b31f | |
parent | 05f522ecc42e106bffb1945e8e0fd1c25586f73c (diff) |
Don't show internal admin authority on auto generated list on home page
-rw-r--r-- | app/controllers/general_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 21a318938..3fdfb4b0b 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -29,7 +29,7 @@ class GeneralController < ApplicationController PublicBody.with_locale(@locale) do if body_short_names.empty? # This is too slow - @popular_bodies = PublicBody.find(:all, + @popular_bodies = PublicBody.visible.find(:all, :order => "info_requests_count desc", :limit => 32, :conditions => conditions, |