application_controller.rb 346 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# frozen_string_literal: true

class InstanceStatistics::ApplicationController < ApplicationController
  before_action :authenticate_user!
  layout 'instance_statistics'

  def index
    redirect_to instance_statistics_conversations_development_index_index_path
  end

  def authenticate_user!
    render_404 unless current_user.admin?
  end
end