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: document_authorizer.rb
    path of file: ./repos/onebody/app/authorizers
    
    the code of the file until where you have to start completion: class DocumentAuthorizer < ApplicationAuthorizer
  def readable_by?(user)
    if user.admin?(:manage_
    
  def readable_by?(user)
    if user.admin?(:manage_documents)
      true
    elsif resource.hidden?
      false
    elsif (ids = resource.parent_folder_group_ids).any?
      (ids & user.group_ids).any?
    else
      true
    end