1 class OldElementsController < ApplicationController
4 before_action :authorize_web
5 before_action :set_locale
6 before_action -> { check_database_readable(:need_api => true) }
7 before_action :require_oauth
11 before_action :require_moderator_for_unredacted_history
12 around_action :web_timeout
16 def require_moderator_for_unredacted_history
17 deny_access(nil) if params[:show_redactions] && !current_user&.moderator?