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

Do not try to render InstrumentQCFailuresViewlet to non-lab personnel #1508

Merged
merged 2 commits into from
Jan 27, 2020

Conversation

xispa
Copy link
Member

@xispa xispa commented Jan 26, 2020

Description of the issue/feature this PR addresses

Although the viewlet InstrumentQCFailuresViewlet won't be displayed to non-lab personnel (because they don't have privileges to search for Instruments from setup, the system tries to render the viewlet still. This makes an Unauthorized error to rise up in logs and also makes the rendering of the current context slower.

Current behavior before PR

System tries to render the viewlet InstrumentQCFailuresViewlet for non-lab users

Desired behavior after PR is merged

System does not even try to render the viewlet.

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

@ramonski ramonski merged commit 38c2984 into master Jan 27, 2020
@ramonski ramonski deleted the qc-viewlet branch January 27, 2020 14:09
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