diff --git a/backend/app/controllers/sonolus/levels_controller.rb b/backend/app/controllers/sonolus/levels_controller.rb index d987a48..8147095 100644 --- a/backend/app/controllers/sonolus/levels_controller.rb +++ b/backend/app/controllers/sonolus/levels_controller.rb @@ -228,8 +228,6 @@ def list ) end case params[:type] - when "quick", "advanced" - charts = charts.where(visibility: :public) when "testing" require_login! alt_users = User.where(owner_id: current_user.id) @@ -245,6 +243,8 @@ def list .select(:chart_id) .order(created_at: :desc) charts = charts.where(id: likes.map(&:chart_id)) + else + charts = charts.where(visibility: :public) end if params[:q_id].present? charts =