2018-07-18 00:37:58 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class InstanceStatistics::ApplicationController < ApplicationController
|
|
|
|
before_action :authenticate_user!
|
|
|
|
layout 'instance_statistics'
|
|
|
|
|
|
|
|
def authenticate_user!
|
2018-07-23 13:30:11 +00:00
|
|
|
render_404 unless can?(current_user, :read_instance_statistics)
|
2018-07-18 00:37:58 +00:00
|
|
|
end
|
|
|
|
end
|