X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cda441b1b6e50811c7dbd8d5c61ead1b39c91857..28b6afc1e8ccf652c7a8fd43e22a8ac788febd85:/apps/workbench/app/models/api_client_authorization.rb diff --git a/apps/workbench/app/models/api_client_authorization.rb b/apps/workbench/app/models/api_client_authorization.rb index ac3a9bf8ed..b78cb286ec 100644 --- a/apps/workbench/app/models/api_client_authorization.rb +++ b/apps/workbench/app/models/api_client_authorization.rb @@ -1,6 +1,10 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class ApiClientAuthorization < ArvadosBase - def attribute_editable? attr, *args - ['expires_at', 'default_owner_uuid'].index attr + def editable_attributes + %w(expires_at default_owner_uuid) end def self.creatable? false