2018-07-18 00:37:58 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class InstanceStatistics::ApplicationController < ApplicationController
|
|
|
|
before_action :authenticate_user!
|
|
|
|
layout 'instance_statistics'
|
|
|
|
|
|
|
|
def index
|
|
|
|
redirect_to instance_statistics_conversations_development_index_index_path
|
|
|
|
end
|
|
|
|
|
|
|
|
def authenticate_user!
|
2018-07-18 01:41:40 +00:00
|
|
|
render_404 if ApplicationSettingsHelper.hide_instance_statistics?(current_user)
|
2018-07-18 00:37:58 +00:00
|
|
|
end
|
|
|
|
end
|