diff --git a/app/serializers/client_serializer.rb b/app/serializers/client_serializer.rb index 19582fa38..52469376b 100644 --- a/app/serializers/client_serializer.rb +++ b/app/serializers/client_serializer.rb @@ -48,19 +48,6 @@ class ClientSerializer object.password.present? end - attribute :domains, - if: - Proc.new { |object, params| - params[:current_ability] && - params[:current_ability].can?( - :read_contact_information, - object, - ) == - true - } do |object| - object.domains - end - attribute :contact_email, if: Proc.new { |object, params| diff --git a/app/serializers/repository_serializer.rb b/app/serializers/repository_serializer.rb index fa3e0c066..e3c12b550 100644 --- a/app/serializers/repository_serializer.rb +++ b/app/serializers/repository_serializer.rb @@ -44,19 +44,6 @@ class RepositorySerializer object.is_active.getbyte(0) == 1 end - attribute :domains, - if: - Proc.new { |object, params| - params[:current_ability] && - params[:current_ability].can?( - :read_contact_information, - object, - ) == - true - } do |object| - object.domains - end - attribute :has_password, if: Proc.new { |object, params|