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: update_company.rb
    path of file: ./repos/vglist/app/graphql/mutations/companies
    
    the code of the file until where you have to start completion: # typed: true
class Mutations::Companies::UpdateCompany < Mutation
    
  def authorized?(object)
    require_permissions!(:first_party)

    company = Company.find(object[:company_id])
    raise GraphQL::ExecutionError, "You aren't allowed to update this company." unless CompanyPolicy.new(@context[:current_user], company).update?

    return true
  end