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

Check permission when automatic sample reception is enabled #2419

Merged
merged 5 commits into from
Nov 12, 2023

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

Linked issue: #2418

This PR fixes a permission issue when automatic sample reception is enabled in the setup

Current behavior before PR

Samples are always transitioned to sample_receive, no matter if the user has the permission senaite.core: Transition: Receive Sample granted or not.

Desired behavior after PR is merged

Samples are only transitioned to sample_receive if the user has the permission senaite.core: Transition: Receive Sample granted.

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

@xispa xispa merged commit 1063e04 into 2.x Nov 12, 2023
2 checks passed
@xispa xispa deleted the fix-permission-check-for-automatic-sample-reception branch November 12, 2023 17:01
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