Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport: don't load_and_authorize a model when indexing Embargoes #5815

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

no-reply
Copy link
Member

backport #5809 to 3.x

@samvera/hyrax-code-reviewers

this code doesn't need to execute for `index`, and only works by
co-incidence (since anyone whon can :index `Hydra::AccessControls::Embargo`, can
also index `ActiveFedora::Base`). this might not be true for other models, or
when apps have customized their Ability code, so it's strictly incorrect.
@no-reply no-reply changed the title don't load_and_authorize a model when indexing Embargoes backport: don't load_and_authorize a model when indexing Embargoes Aug 29, 2022
@dlpierce dlpierce merged commit d5be603 into 3.x-stable Aug 29, 2022
@dlpierce dlpierce deleted the backport-5809 branch August 29, 2022 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants