2762: Merge branch 'master' into 2762-owner-uuid-integrity
[arvados.git] / apps / workbench / app / models / pipeline_instance.rb
index ccb88351a761be86abeda65dec7346b4de76c145..45e472fae923077bf850727272ed412193747a06 100644 (file)
@@ -18,7 +18,8 @@ class PipelineInstance < ArvadosBase
   end
   
   def attribute_editable?(attr)
-    attr.to_sym == :name || (attr.to_sym == :components and self.active == nil)
+    attr && (attr.to_sym == :name ||
+            (attr.to_sym == :components and (self.state == 'New' || self.state == 'Ready')))
   end
 
   def attributes_for_display