Merge branch 'master' into 2919-provenance-graph-cutoff
[arvados.git] / apps / workbench / app / models / arvados_base.rb
index 2c2963ca595aa00a35e6d5f8e08619ea061eeb57..2eb0b625775a5b249c547eb221849ba7fe9459bc 100644 (file)
@@ -301,13 +301,15 @@ class ArvadosBase < ActiveRecord::Base
       (writable_by.include? current_user.uuid rescue false)))
   end
 
-  def attribute_editable?(attr)
+  def attribute_editable?(attr, ever=nil)
     if "created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at".index(attr.to_s)
       false
     elsif not (current_user.andand.is_active)
       false
     elsif attr == 'uuid'
       current_user.is_admin
+    elsif ever
+      true
     else
       editable?
     end