-
Notifications
You must be signed in to change notification settings - Fork 0
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
User with only depositor role cannot deposit into admin set #864
Comments
Investigation NotesUsers being able to create a work depends on two conditions being true:
Currently, when a user is granted deposit access to an Admin Set, only the second condition is met. The CanCan permission for registered users (i.e. non-admin users with no roles) to be able to However, a registered user given deposit access to a specific admin set should be able to deposit works into it, even without any additional roles. Thus, this logic needs to be rethought. Possible FixesThe most obvious possible path forward would be to restore CanCan permissions to be able to |
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: - #864
QA Results: PASS ✅Tested on: softserv-qa.commons-archive.org, user with no roles: [email protected]
DEMO: https://share.zight.com/llu8o709
|
Even though a user could not see the Add New Work or Collection button, they were still able to navigate to it via the routes. This commit will rework the ability logic for depositor so that won't happen. Ref: - #864
We implemented a fix for this bug in PALS and are contributing it back to Hyku. Issue: - notch8/palni-palci#864
We implemented a fix for this bug in PALS and are contributing it back to Hyku. Issue: - notch8/palni-palci#864
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: - notch8/palni-palci#864
Even though a user could not see the Add New Work or Collection button, they were still able to navigate to it via the routes. This commit will rework the ability logic for depositor so that won't happen. Ref: - notch8/palni-palci#864
Which were resolved via the following PRs: - notch8/palni-palci#768 - notch8/palni-palci#786 - notch8/palni-palci#790 - notch8/palni-palci#807 - notch8/palni-palci#850 - notch8/palni-palci#781 - notch8/palni-palci#787 - notch8/palni-palci#795 - notch8/palni-palci#788 - notch8/palni-palci#793 - notch8/palni-palci#782 - notch8/palni-palci#798 - notch8/palni-palci#866 - notch8/palni-palci#846 - notch8/palni-palci#849 - notch8/palni-palci#868 - notch8/palni-palci#875 - notch8/palni-palci#884 - notch8/palni-palci#876 - notch8/palni-palci#952 Contribute back the following features: - notch8/palni-palci#125 - notch8/palni-palci#740 - notch8/palni-palci#742 - notch8/palni-palci#746 - notch8/palni-palci#772 - notch8/palni-palci#773 - notch8/palni-palci#774 - notch8/palni-palci#776 - notch8/palni-palci#778 - notch8/palni-palci#839 - notch8/palni-palci#840 - notch8/palni-palci#864 Co-authored-by: Shana Moore <[email protected]> Co-authored-by: Kirk Wang <[email protected]>
Summary
I think I've found another bug related to groups and sharing, but want to make sure that I understand the intended functionality first. A user added a depositor to an admin set should be able to deposit works through that set even if they don't have any other roles, right? (Because the user depositor role already allows a user to deposit into any admin set.) That isn't working in our instance, for individuals or groups.
Accepted Criteria
Testing Instructions
Giving a user deposit access
Giving a group deposit access
The text was updated successfully, but these errors were encountered: