app/controllers/documents_v2_controller.rb
def parse_access_key
    if params[:accessKey].present?
      type, key = params[:accessKey].split('::')
      return OpenStruct.new({key: key, read_only?: type == 'RO', read_write?: type == 'RW', valid_format?: ((type == 'RO') || (type == 'RW')) && (key != nil)})
    else
      return nil
    end
  end
# don't check for csrf token
don't check for csrf token
don ' t check for csrf token
def parse_access_key
    if params[:accessKey].present?
      type, key = params[:accessKey].split('::')
      return OpenStruct.new({key: key, read_only?: type == 'RO', read_write?: type == 'RW', valid_format?: ((type == 'RO') || (type == 'RW')) && (key != nil)})
    else
      return nil
    end
  end
def parse_access_key if params [ :accessKey ] . present? type , key = params [ :accessKey ] . split ( '::' ) return OpenStruct . new ( { key : key , read_only? : type == 'RO' , read_write? : type == 'RW' , valid_format? : ( ( type == 'RO' ) || ( type == 'RW' ) ) && ( key != nil ) } ) else return nil end end
don't check for csrf token
don ' t check for csrf token