5145: while combining colletions, append an integer for any duplicate files.
[arvados.git] / apps / workbench / app / models / repository.rb
index 06c70f4688211c30be05f8685274583ee66f3d4e..b062dda8610ae7feed3494befbcd42acea37ec4e 100644 (file)
@@ -2,4 +2,14 @@ class Repository < ArvadosBase
   def self.creatable?
     current_user and current_user.is_admin
   end
+  def attributes_for_display
+    super.reject { |x| x[0] == 'fetch_url' }
+  end
+  def editable_attributes
+    if current_user.is_admin
+      super
+    else
+      []
+    end
+  end
 end