1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class Arvados::V1::WorkflowsController < ApplicationController
7 if @object.collection_uuid.nil?
8 # Only allowed to update directly when collection_uuid is nil (legacy behavior)
11 raise ArvadosModel::PermissionDeniedError.new("Cannot directly update Workflow records that have collection_uuid set, must update the linked collection (#{@object.collection_uuid})")