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 unauthorized error when accessing dispatch/partition sample view with shared client role #2346

Merged
merged 3 commits into from
Jun 26, 2023

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR is related to #2332 and fixes an unauthorized error when clicking on the dispatch/partition buttons in the global samples view with a user that has shared roles on the clinet context applied (see: #2301)

Current behavior before PR

Unauthorized Error occurs if a client contact linked user with the shared roles of e.g. Lab Manager clicks on the Dispatch/Partition buttons in the global samples listing.

Desired behavior after PR is merged

Views are displayed on the global samples listing view for users with shared roles granted on the client context.

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

@ramonski ramonski requested a review from xispa June 25, 2023 06:33
@xispa xispa merged commit 964d8f8 into 2.x Jun 26, 2023
2 checks passed
@xispa xispa deleted the sample-related-views-permissions branch June 26, 2023 07:45
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