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

use a can? check for the metadata_only flag #847

Merged
merged 2 commits into from
Mar 2, 2022

Conversation

rococodogs
Copy link
Member

we were only checking for authenticated users/permissions in Spot::BasePresenter#metadata_only_flag which was excluding users/groups added to a work's read_users/read_groups. this replaces that check with a broader can?(:read, solr_document) call that should be more extensive

closes #845

@codeclimate
Copy link

codeclimate bot commented Mar 2, 2022

Code Climate has analyzed commit 197cf62 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (100% is the threshold).

This pull request will bring the total coverage in the repository to 98.0% (0.0% change).

View more on Code Climate.

@rococodogs rococodogs merged commit 4f034aa into develop Mar 2, 2022
@rococodogs rococodogs deleted the bugfix/metadata-only-flag branch March 2, 2022 16:44
@rococodogs rococodogs mentioned this pull request Mar 2, 2022
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.

1 participant