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 committed May 31, 2024
1 parent 654491a commit a81a2ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,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 a81a2ba

Please sign in to comment.