Merge branch '1977-provenance-report' of git.clinicalfuture.com:arvados into 1977...
[arvados.git] / apps / workbench / app / models / user.rb
index 7ab532df58b841f7a033becf18eb7c2eb62c0513..cc9b9bb058cea3e2696eaf37a85559fde93d1431 100644 (file)
@@ -27,7 +27,11 @@ class User < ArvadosBase
                                                 {}))
   end
 
-  def attribute_editable?(attr)
+  def attributes_for_display
+    super.reject { |k,v| %w(owner_uuid default_owner_uuid identity_url prefs).index k }
+  end
+
+ def attribute_editable?(attr)
     (not (self.uuid.andand.match(/000000000000000$/) and self.is_admin)) and super(attr)
   end