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

    def create_bulk_entitle?
      allowed?
    end

    def create_bulk_entitle_by_campaign?
      allowed?
    end

    def get_input?
      allowed?
    end

    def get_options?
      allowed?
    end

    def get_output?
      allowed?
    end

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