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

Reviewers, editors and final editors; can submit even in collections with a restricted group of submitters #3849

Open
DanGastardelli opened this issue Jan 17, 2025 · 3 comments
Labels
authorization related to authorization, permissions or groups bug component: submission component: workflow help wanted Needs a volunteer to claim to move forward medium priority

Comments

@DanGastardelli
Copy link
Contributor

Describe the bug

When having collections with a submitter group and some workflow role group (whether reviewer, editor or final editor), the member of the role group can submit to the collection even without being part of the submitter group. The test was done in versions 7.5, 8.1 and 9.0.

To Reproduce

Steps to reproduce the behavior:

  1. Log in to DSpace;

  2. Create a submitter group and a workflow role;

  3. Include different users in each group;

  4. Log in as one of the users who is only in the chosen workflow group;

  5. Attempt to submit to this collection.

Expected behavior

If the user is only in a workflow role for the collection and is not part of the submitter group, he/she will not be able to submit.

@DanGastardelli DanGastardelli added bug needs triage New issue needs triage and/or scheduling labels Jan 17, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Triage in DSpace Backlog Jan 17, 2025
@tdonohue
Copy link
Member

Thank @DanGastardelli for reporting this. I'm able to verify this on the demo site (https://demo.dspace.org) using the following steps:

  1. Login as the Admin account ([email protected])
  2. Go to "Access Control" -> "People" and check the permissions of the demo submitter account ([email protected])
    a. Write down which "SUBMIT" groups that person is in, especially the Collection name
  3. Now go to a Collection which is NOT listed in the prior step (2a). Edit it, and create the "Reviewer" role
  4. Add the demo submitter account ([email protected]) to that role.
  5. Logout and login now as the Demo Submitter account
  6. Go to "New -> Item".
  7. You'll see an option to submit to the Collection where you have the "Reviewer" role. Select it and start a submission
  8. Finish the Submission and click save. It will all succeed, even though you only have "Reviewer" privileges.

Obviously, this seems incorrect, as you don't have SUBMIT privileges. Even though you have special privileges granted on the Collection, it doesn't seem like you should be allowed to submit to it.

I'll bring this to the next developers meeting to discuss. https://wiki.lyrasis.org/display/DSPACE/2025-01-23+DSpace+Developers+Meeting

@tdonohue tdonohue added help wanted Needs a volunteer to claim to move forward component: submission high priority and removed needs triage New issue needs triage and/or scheduling labels Jan 17, 2025
@tdonohue
Copy link
Member

We discussed this bug in today's Developers Meeting: https://wiki.lyrasis.org/display/DSPACE/2025-01-23+DSpace+Developers+Meeting#id-20250123DSpaceDevelopersMeeting-Notes

General consensus was that this definitely is a bug, but it's likely not high priority at this time.

The cause of the bug is a lack of specificity to our access controls. Currently, in DSpace, submit privileges are determined based on whether an EPerson has "ADD" privileges given to a specific Collection. The "Submitters" group is never actually checked, but instead is just a way to provide bulk "ADD" privileges to that Collection -- as all members of that group inherit "ADD" privileges.

The complication is that Workflow approval roles also require "ADD" privileges on the specific Collection in order to give workflow roles the ability to edit "in-progress" submissions (for the "Editor" and "Final Editor" role).

So, this bug exists because both roles need to have ADD privileges. We don't yet have a different privilege type specific to Workflow, which could give Workflow roles permissions to edit existing Submissions but not add new submissions. This may require a larger overhaul of our permissions system, or defining a new privilege type that is specific to workflow roles.

At this time, the Committers in the meeting agreed this is a bug. However, it doesn't seem high priority because it likely would not significantly impact many sites. At many institutions, workflow roles go to trusted individuals. In many cases, these same individuals are trusted enough to create submissions on behalf of others, etc. Even if they were to submit to the same collection, their submission would go through the same workflow approval process (and could therefore be rejected by others in the process). Therefore, this permission issue may be unexpected behavior, but it's not seen as a severe bug at this time.

Changing to "medium priority". However, still leaving this open for volunteers to investigate, as we would like to start brainstorming ways to fix this confusing behavior.

@tdonohue tdonohue added medium priority component: workflow authorization related to authorization, permissions or groups and removed high priority labels Jan 23, 2025
@DanGastardelli
Copy link
Contributor Author

Understood @tdonohue , thanks a lot for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authorization related to authorization, permissions or groups bug component: submission component: workflow help wanted Needs a volunteer to claim to move forward medium priority
Projects
Development

No branches or pull requests

2 participants