[ARVADOS] updated: 4578ee9a75a326eea77d0f2e84737ebcfda3fdcc
git at public.curoverse.com
git at public.curoverse.com
Mon Oct 6 16:29:02 EDT 2014
Summary of changes:
apps/workbench/app/controllers/pipeline_instances_controller.rb | 7 +++++++
1 file changed, 7 insertions(+)
via 4578ee9a75a326eea77d0f2e84737ebcfda3fdcc (commit)
from 1f469018cec0daf492a8a8e397d094ec88f6cd49 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 4578ee9a75a326eea77d0f2e84737ebcfda3fdcc
Author: radhika <radhika at curoverse.com>
Date: Mon Oct 6 16:27:25 2014 -0400
3990: set owner_uuid of a copied pipeline instance to that of the source, provided it is a project and writable by the current user.
diff --git a/apps/workbench/app/controllers/pipeline_instances_controller.rb b/apps/workbench/app/controllers/pipeline_instances_controller.rb
index 27e8f5b..ce3befa 100644
--- a/apps/workbench/app/controllers/pipeline_instances_controller.rb
+++ b/apps/workbench/app/controllers/pipeline_instances_controller.rb
@@ -47,6 +47,13 @@ class PipelineInstancesController < ApplicationController
component.delete :job
end
@object.state = 'New'
+
+ # set owner_uuid to that of source, provided it is wriable by current user
+ current_project = Group.find(source.owner_uuid) rescue nil
+ if (current_project && current_project.writable_by.andand.include?(current_user.uuid))
+ @object.owner_uuid = source.owner_uuid
+ end
+
super
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list