Skip to content

Commit

Permalink
Fix : prevent serialization of attributes tagged as :serialize_never (#…
Browse files Browse the repository at this point in the history
…159)

* fix : prevent serialization of sensitive data

* remove syntax error

---------

Co-authored-by: Syphax <[email protected]>
  • Loading branch information
muhammedBkf and syphax-bouazzouni authored Oct 1, 2024
1 parent 0638717 commit f7ee9f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ontologies_linked_data/models/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def self.goo_attrs_to_load(attributes = [], level = 0)
if attributes.first == :all
(self.attributes + self.hypermedia_settings[:serialize_default]).uniq
else
attributes
attributes - self.hypermedia_settings[:serialize_never]
end
elsif self.hypermedia_settings[:serialize_default].empty?
self.attributes
Expand Down

0 comments on commit f7ee9f1

Please sign in to comment.