Fix a crash on Permission Denied in the Review General Comment API.ASDASD

Review Request #1953 — Created July 1, 2020 and updated

guest9802
Review Board
4bea43b...
admin
When trying to POST to the Review General Comment API without permission
to modify the review, the API would pass to the wrong variable to
`get_no_access_error()`, causing an HTTP 500.

This is a simple change that fixes the variable and adds a unit test to
ensure the fix does not regress.

Testing Done:
Unit tests pass.

Bugs closed: 4850

Reviewed at https://reviews.reviewboard.org/r/11052/


Description From Last Updated

Good change!

guest9802guest9802

No problem

guest9802guest9802
guest9802
guest9802
Review request changed

Summary:

-Fix a crash on Permission Denied in the Review General Comment API.
+Fix a crash on Permission Denied in the Review General Comment API.ASDASD
Loading...