projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15138-version-our-documentation'
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
node.rb
diff --git
a/apps/workbench/app/models/node.rb
b/apps/workbench/app/models/node.rb
index 0a324ff5139bb88d5fcd77a65c3b638616182bdd..785cc4fcfe5279dcc31288ab6951de498b328817 100644
(file)
--- a/
apps/workbench/app/models/node.rb
+++ b/
apps/workbench/app/models/node.rb
@@
-1,8
+1,12
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class Node < ArvadosBase
def self.creatable?
class Node < ArvadosBase
def self.creatable?
- current_user and current_user.is_admin
+ false
end
end
- def friendly_link_name
- self.hostname
+ def friendly_link_name
lookup=nil
+ (hostname && !hostname.empty?) ? hostname : uuid
end
end
end
end