Newer
Older
dmpopidor / app / controllers / usage_controller.rb
@Brian Riley Brian Riley on 7 Sep 2018 319 bytes Remove old JS form validations (#1867)
# frozen_string_literal: true

class UsageController < ApplicationController

  # GET /usage
  def index
    unless current_user.present? &&
          (current_user.can_org_admin? || current_user.can_super_admin?)
      raise Pundit::NotAuthorizedError
    end
    render("index", locals: { orgs: Org.all })
  end

end