You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: data_privacy_task_validator.rb
    path of file: ./repos/zammad/lib/validations
    
    the code of the file until where you have to start completion: # Copyright (C) 2012-
    
  def check_for_user
    return if !record.deletable_id_changed?
    return if !deletable.is_a?(User)

    check_for_system_user
    check_for_current_user
    check_for_last_admin
  end