closes #6880
[arvados.git] / apps / workbench / app / models / node.rb
index e67dd9ea591df543b50d0f0684bdd936516bfdf8..e66be83078c9f5dbe2fff3be09dcba17c5fb4bf9 100644 (file)
@@ -1,3 +1,8 @@
 class Node < ArvadosBase
-  attr_accessor :object
+  def self.creatable?
+    current_user and current_user.is_admin
+  end
+  def friendly_link_name lookup=nil
+    (hostname && !hostname.empty?) ? hostname : uuid
+  end
 end