Welcome to mirror list, hosted at ThFree Co, Russian Federation.

application_controller.rb « instance_statistics « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 37e4b26c5c19947a8ae16ff2bef0f7acb854f433 (plain)
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 if ApplicationSettingsHelper.hide_instance_statistics?(current_user)
  end
end