X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3d6d295404e701cfc08127bbcb49bedbbea6dd0a..80f24dbef6515f100a5358c3e94fddd4ff7d97c7:/apps/workbench/app/models/node.rb diff --git a/apps/workbench/app/models/node.rb b/apps/workbench/app/models/node.rb index e67dd9ea59..6518047b8d 100644 --- a/apps/workbench/app/models/node.rb +++ b/apps/workbench/app/models/node.rb @@ -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 + (hostname && !hostname.empty?) ? hostname : uuid + end end