X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fc100474c5d74b20b2576bd3a8f633746c0c6fb2..918e16de43e993894dcaffbe0cafa0fc1d2f16b3:/services/api/lib/common_api_template.rb diff --git a/services/api/lib/common_api_template.rb b/services/api/lib/common_api_template.rb index d474581ef3..67c7f8c4fa 100644 --- a/services/api/lib/common_api_template.rb +++ b/services/api/lib/common_api_template.rb @@ -16,7 +16,6 @@ module CommonApiTemplate t.add :modified_by_client_uuid t.add :modified_by_user_uuid t.add :modified_at - t.add :updated_at end end @@ -25,7 +24,7 @@ module CommonApiTemplate def as_api_response(template=nil, opts={}) if template.nil? user = opts[:for_user] || current_user - if user.is_admin and self.respond_to? :api_accessible_superuser + if user.andand.is_admin and self.respond_to? :api_accessible_superuser template = :superuser else template = :user