X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6f6235983d91e0b9fb5660d0a2825f510bbdac73..5c8437e59cbfd13b99d402b42b6bdfc18aa82bf8:/apps/workbench/app/models/user.rb diff --git a/apps/workbench/app/models/user.rb b/apps/workbench/app/models/user.rb index 59ab1ba5ad..9c914776a2 100644 --- a/apps/workbench/app/models/user.rb +++ b/apps/workbench/app/models/user.rb @@ -17,11 +17,6 @@ class User < ArvadosBase end end - def owned_items - res = arvados_api_client.api self.class, "/#{self.uuid}/owned_items" - arvados_api_client.unpack_api_response(res) - end - def full_name (self.first_name || "") + " " + (self.last_name || "") end @@ -36,8 +31,8 @@ class User < ArvadosBase super.reject { |k,v| %w(owner_uuid default_owner_uuid identity_url prefs).index k } end - def attribute_editable?(attr) - (not (self.uuid.andand.match(/000000000000000$/) and self.is_admin)) and super(attr) + def attribute_editable? attr, *args + (not (self.uuid.andand.match(/000000000000000$/) and self.is_admin)) and super end def friendly_link_name