From 871e2fda4fea4ada327031aaa30d2bbb5774956a Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 17 Oct 2012 14:51:32 +1100 Subject: Don't show internal admin authority on auto generated list on home page --- app/controllers/general_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/general_controller.rb') 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, -- cgit v1.2.3