X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3d6d295404e701cfc08127bbcb49bedbbea6dd0a..f107a5232d5e8788ae19daf1c5f6639f0c3cdb68:/apps/workbench/app/models/node.rb?ds=sidebyside 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