🐛 Fix user despositing to specific admin sets #876
Merged
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.
Story
This commit will add back the ability for everyone to be able to create a work. This is one of the conditionals that need to be met for a user to deposit a work to an admin set. The other is already being met, which is that the user has to have either a depositor role for that specific admin set or in a group that has a depositor role for that specific admin set.
Ref:
Expected Behavior Before Changes
Prior to this commit, even if a user was granted the role of depositor to an admin set, they could not add a work. If they were added in a group that had the depositor role, they still were not able to create a work.
Expected Behavior After Changes
Now, users who have the depositor role or in a group with the depositor role can deposit to admin sets.
Screenshots / Video
Screen.Recording.2023-10-18.at.16.09.56.mp4