projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' into 3699-arv-copy
[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 048ac59a0a94360cc50e7f4bd1ee4cb9d02e908c..6518047b8d161df66605bb5f34ad61132cd3bb8c 100644
(file)
--- a/
apps/workbench/app/models/node.rb
+++ b/
apps/workbench/app/models/node.rb
@@
-1,6
+1,8
@@
class Node < ArvadosBase
- attr_accessor :object
+ def self.creatable?
+ current_user and current_user.is_admin
+ end
def friendly_link_name
- self.hostname
+ (hostname && !hostname.empty?) ? hostname : uuid
end
end