module Bits
  class ActualPolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def configure_actuals?
      allowed?
    end

    def allowed?
      user.permitted?(BeefCake::Permission.for(:revenue_reporting)) || user.permitted?(BeefCake::Permission.for(:bits_catalog))
    end
  end
end