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

Prevent crash when checking permissions of external reviewer without shares #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jacobtoppm
Copy link

Check for existence of share before checking share.can_comment to prevent exception for external reviewers without shares

…vent exception for external reviewers without shares
@gasman
Copy link
Contributor

gasman commented Apr 17, 2020

Not sure I follow this logic - if the Share object is the thing that determines whether an external reviewer has access to a page, why is it valid for an external reviewer not to have one?

@jacobtoppm
Copy link
Author

Not sure I follow this logic - if the Share object is the thing that determines whether an external reviewer has access to a page, why is it valid for an external reviewer not to have one?

I think the idea was a Share was a separate mechanism for sharing a particular draft revision in a time limited fashion (eg the shares panel), but if it was on a particular task state, it should always be reviewable by the external users assigned to that task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants