-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Favor Hyrax.query_service over method chaining
Prior to this commit we relied on the access_control object to "self convert" via the `#valkyrie_resource` method. However, that method circumvents the `Hyrax.query_service` which provides a more up to date version of the permissions. This is subtle bug is most notable when we have composite adapters; those modeled in the `double_combo` branch. How it manifests is as follows: - I have a Work and ACL in Fedora. - I update the ACL to Postgres. - When I fetch the Work, it's in Fedora and grabs the ACL from Fedora which is not the most current. This relates to: - 0de7df6 - #6670
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters