gitlab-org--gitlab-foss/app/controllers/instance_statistics/application_controller.rb

11 lines
308 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class InstanceStatistics::ApplicationController < ApplicationController
2018-07-25 11:36:08 -04:00
before_action :authorize_read_instance_statistics!
layout 'instance_statistics'
2018-07-25 11:36:08 -04:00
def authorize_read_instance_statistics!
render_404 unless can?(current_user, :read_instance_statistics)
end
end