X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d77bf0c67422a259afacc17660698729328a1ed3..91dc5f1d7f5ad9eb2640f6089e2d0476cbf87c8e:/services/api/app/models/api_client_authorization.rb diff --git a/services/api/app/models/api_client_authorization.rb b/services/api/app/models/api_client_authorization.rb index c587e5830a..f7985a986a 100644 --- a/services/api/app/models/api_client_authorization.rb +++ b/services/api/app/models/api_client_authorization.rb @@ -65,9 +65,7 @@ class ApiClientAuthorization < ArvadosModel end def logged_attributes - attrs = attributes.dup - attrs.delete('api_token') - attrs + super.except 'api_token' end def self.default_orders @@ -82,8 +80,9 @@ class ApiClientAuthorization < ArvadosModel def permission_to_update (permission_to_create and - not self.user_id_changed? and - not self.owner_uuid_changed?) + not uuid_changed? and + not user_id_changed? and + not owner_uuid_changed?) end def log_update