Files
danbooru/app/controllers/forum_topic_visits_controller.rb
evazion b169d60f64 Fix saved searces, news updates, ip bans being dumped to BigQuery.
Prevent saved searches, news updates, and ip bans from being publicly
dumped to BigQuery. They didn't override the `visible` method to
restrict their visibility for anonymous users.
2021-03-10 03:08:49 -06:00

9 lines
236 B
Ruby

class ForumTopicVisitsController < ApplicationController
respond_to :xml, :json
def index
@forum_topic_visits = ForumTopicVisit.visible(CurrentUser.user).paginated_search(params)
respond_with(@forum_topic_visits)
end
end