+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
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