module History
  class DeletionPolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def create?
      allowed?
    end

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