diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index f7e9708a..c450bdfc 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -16,7 +16,7 @@ class MainController < ApplicationController @maps = Map.find_all_by_featured(true).shuffle! @maps = @maps.slice(0,3) elsif authenticated? - @maps = Map.order("updated_at DESC").limit(3) + @maps = Map.order("updated_at DESC").where("permission != ?", "private").limit(3) end respond_with(@maps, @current)