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

Fix sample remains in "registered" status after creation when user cannot receive #2424

Merged
merged 5 commits into from
Nov 15, 2023

Conversation

xispa
Copy link
Member

@xispa xispa commented Nov 14, 2023

Description of the issue/feature this PR addresses

This Pull Request ensures that sample transitions to sample_due on creation when the setting Auto-receive samples is enabled, but the current user (e.g. a client) does not have the permission senaite.core: Transition: Receive granted.

Linked issue: #2418 (comment)

Current behavior before PR

If the user does not have the permission senaite.core: Transition: Receive granted, the sample remains on registered status instead of transitioning to sample_due.

Desired behavior after PR is merged

If the user does not have the permission senaite.core: Transition: Receive granted, the sample transitions to sample_due.

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

Copy link
Contributor

@ramonski ramonski left a comment

Choose a reason for hiding this comment

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

Great! Thanks for the Doctest!

@ramonski ramonski merged commit dc10d8b into 2.x Nov 15, 2023
2 checks passed
@ramonski ramonski deleted the i2418-2 branch November 15, 2023 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants