gitlab-org--gitlab-foss/app/controllers/instance_statistics/application_controller.rb
2018-07-27 15:54:28 +02:00

10 lines
308 B
Ruby

# frozen_string_literal: true
class InstanceStatistics::ApplicationController < ApplicationController
before_action :authorize_read_instance_statistics!
layout 'instance_statistics'
def authorize_read_instance_statistics!
render_404 unless can?(current_user, :read_instance_statistics)
end
end