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

Ensuring that multiple titles can be updated for an approved Work #866

Closed
wants to merge 1 commit into from

Conversation

jrgriffiniii
Copy link
Contributor

@jrgriffiniii jrgriffiniii commented Jan 17, 2023

Resolves #833

end
end

context "when authenticated as the submitter of the Work" do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be the failing case. I can ensure that this is fully resolved.

@jrgriffiniii jrgriffiniii force-pushed the issues-833-mult-titles branch 2 times, most recently from c0cc843 to 1925d1f Compare January 18, 2023 15:09
@jrgriffiniii jrgriffiniii marked this pull request as ready for review January 18, 2023 15:10
@jrgriffiniii
Copy link
Contributor Author

I was failing to reproduce these errors locally, I am going to proceed with resolving the outstanding failing test.

@jrgriffiniii jrgriffiniii self-assigned this Jan 18, 2023
@jrgriffiniii jrgriffiniii marked this pull request as draft January 18, 2023 15:36
@jrgriffiniii jrgriffiniii marked this pull request as ready for review January 18, 2023 17:36
Copy link
Member

@carolyncole carolyncole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrgriffiniii I am unsure if by fixing this "bug" we are introducing a bug. We should check to see if we still want to limit when a depositor can edit the metadata before this gets merged.

I have no technical issue with this PR and I am not really requesting any changes, I just want to block it from being merged until we can discuss it with RDOS.

@@ -114,8 +114,6 @@ def update
if current_user.blank? || !@work.editable_by?(current_user)
Rails.logger.warn("Unauthorized attempt to update work #{@work.id} by user #{current_user.uid}")
redirect_to root_path
elsif @work.approved? && @work.submitted_by?(current_user)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The requirement that a user can not edit an item they deposited was ticketed here: #255. Does removing this code introduce a bug?

@jrgriffiniii
Copy link
Contributor Author

Given the discussion held on 01/20/23, it was confirmed by the Product Owners that submitters should not be able to modify metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only curators should be able to modify approved items
2 participants