X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0f8dc3d824f03b82b8db9f61bbcc0592b62b998f..0fe15cf43dfc6c10a4fc949ba462a7ac14e2d8e7:/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