Skip to content

Commit

Permalink
Fixing entrypoint into actor stack that casts unpermitted attributes …
Browse files Browse the repository at this point in the history
…to hash
  • Loading branch information
randalldfloyd committed Dec 5, 2024
1 parent 1062b7a commit b8111f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/actors/hyrax/actors/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ class Environment
def initialize(curation_concern, current_ability, attributes)
@curation_concern = curation_concern
@current_ability = current_ability
@attributes = attributes.to_h.with_indifferent_access
#@attributes = attributes.to_h.with_indifferent_access
# TODO how to permit a variable list of attributes safely?
@attributes = attributes&.permit&.to_h.with_indifferent_access
end

##
Expand Down

0 comments on commit b8111f4

Please sign in to comment.