DONT MERGE - FOR PROD DEPLOY: i1046-admin-can-deposit-works-into-collections #1047
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
update the works controller decorator to remove params in collections_service method
This PR is a branch off what is currently on production git sha:
5ef83d8f
to bypass a few pr's on main that have not passed Softserv QA on main deployed to demo.Story
https://assaydepot.slack.com/archives/C0313NKC08L/p1721066260232569
A user is reporting an issue depositing works into collections they should have access to (as an admin).
This is on wabash.hykucommons.org
Refs #1046
Expected Behavior Before Changes
An admin could not add a work that they searched to a collection from the collection "Adds existing works to collection"
An admin could not add a work they searched for in the my/works page through the "Add to Collection button"
Expected Behavior After Changes
An admin can add a work that they searched to a collection from the collection "Adds existing works to collection"
An admin can add a work they searched for in the my/works page through the "Add to Collection button"
Screenshots / Video
Video of local demo of fix: https://share.zight.com/eDuKOD28
Click for BEFORE FIX Screenshots
Before: