debian-mirror-gitlab/app/controllers/instance_statistics/application_controller.rb
2018-11-18 11:00:15 +05:30

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