From 970d29fb1194f3d9ea9dc37b5f097bf4abc49828 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 3 Jan 2020 17:11:24 +0100 Subject: [PATCH] don't show system_email in clients api endpoint. #382 --- app/serializers/client_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/client_serializer.rb b/app/serializers/client_serializer.rb index 211707a20..d75ccc305 100644 --- a/app/serializers/client_serializer.rb +++ b/app/serializers/client_serializer.rb @@ -4,7 +4,7 @@ class ClientSerializer set_type :clients set_id :uid - attributes :name, :symbol, :year, :contact_email, :system_email, :alternate_name, :description, :language, :client_type, :domains, :re3data, :opendoar, :issn, :url, :salesforce_id, :created, :updated + attributes :name, :symbol, :year, :contact_email, :alternate_name, :description, :language, :client_type, :domains, :re3data, :opendoar, :issn, :url, :salesforce_id, :created, :updated belongs_to :provider, record_type: :providers belongs_to :consortium, record_type: :providers, serializer: ProviderSerializer, if: Proc.new { |client| client.consortium_id }