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