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 dlpierce committed Jun 27, 2024
1 parent cc46604 commit b6ce4dd
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 b6ce4dd

Please sign in to comment.