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

Insufficient privileges labclerk #418

Merged
merged 2 commits into from
Nov 26, 2017

Conversation

xispa
Copy link
Member

@xispa xispa commented Nov 26, 2017

Description of the issue/feature this PR addresses

Lab Clerks don't have access to Analysis Request view when they click to the link displayed in AR list. The reason is that if the Analysis Request is received and not verified, the system redirects the user to the manage_results view from the AR, for which LabClerks do not have privileges. For achieving this, a workaround with a check_edit param in the request was used. With this Pull Request, the functionality is preserved, but check_edit tweak has been removed and in the __call__ view of AnalysisRequestView the permissions and status of the AR are checked, so if the current user has no privileges to Edit(Field)Results, the default AR view will be displayed.

Current behavior before PR

LabClerks cannot access to ARs because the system redirects them to AR's manage_results view

Desired behavior after PR is merged

LabClerks can access to AR view.

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

@ramonski ramonski merged commit 55c0fda into senaite:master Nov 26, 2017
@xispa xispa deleted the insufficient-privileges-labclerk branch November 27, 2017 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants