Skip to content

Commit

Permalink
Edit app/controllers/concerns/hyrax/works_controller_behavior.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
abelemlih authored and bwatson78 committed Jul 24, 2024
1 parent 3c47a2e commit 0b0297c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def permissions_changed?
case curation_concern
when ActiveFedora::Base
@saved_permissions != curation_concern.permissions.map(&:to_hash)
else
else
new_permissions = Hyrax::AccessControl.for(resource: curation_concern).permissions
saved_permissions_set = @saved_permissions.to_set
new_permissions.size != @saved_permissions.size || new_permissions.any? { |e| !saved_permissions_set.include? e }
Expand Down

0 comments on commit 0b0297c

Please sign in to comment.