Merge branch '11644-mounts-api'
[arvados.git] / apps / workbench / app / models / node.rb
index 0a324ff5139bb88d5fcd77a65c3b638616182bdd..8bf98c6decb3865054c6339105c688f2ec89fcf4 100644 (file)
@@ -1,8 +1,8 @@
 class Node < ArvadosBase
   def self.creatable?
-    current_user and current_user.is_admin
+    false
   end
-  def friendly_link_name
-    self.hostname
+  def friendly_link_name lookup=nil
+    (hostname && !hostname.empty?) ? hostname : uuid
   end
 end