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: file_controller.rb
    path of file: ./repos/open-build-service/src/api/app/controllers/build
    
    the code of the file until where you have to start completion: module Build
  
    
    def update
      unless User.admin_session?
        # this route can be used publish binaries without history changes in sources
        render_error status: 403, errorcode: 'upload_binary_no_permission',
                     message: 'No permission to upload binaries.'
        return
      end