module Keys
  class BatchPolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def create?
      allowed?
    end

    def deactivate?
      allowed?
    end

    def activate?
      allowed?
    end

    def allowed?
      user.permitted? BeefCake::Permission.for(:product_key_generation)
    end
  end
end