diff options
author | Lincoln Lavoie <lylavoie@iol.unh.edu> | 2020-02-06 13:41:17 -0500 |
---|---|---|
committer | Lincoln Lavoie <lylavoie@iol.unh.edu> | 2020-02-11 21:32:00 -0500 |
commit | 8418b797d249ad06c127cb55be49113f4288e1ba (patch) | |
tree | 1cccb99e4af6386bb8065c3e50775e0d72367be4 /opnfv_testapi/resources/review_handlers.py | |
parent | baf5f4550b5f6142ee25d527ed5fc79fe926211a (diff) |
Updated portal for OVP 2019.12 releaseovp-3.0.1
* Fixed errors for VNF results
* Cleaned up couple of other errors
* Added TOSCA test case requirements.
* Fixed typos and white space issues.
* Corrected flake8 and weblint failures
Signed-off-by: Lincoln Lavoie <lylavoie@iol.unh.edu>
Change-Id: I911f294725c353d1388f44f79814cadc31e21574
Diffstat (limited to 'opnfv_testapi/resources/review_handlers.py')
-rw-r--r-- | opnfv_testapi/resources/review_handlers.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/opnfv_testapi/resources/review_handlers.py b/opnfv_testapi/resources/review_handlers.py index 9731e0f..c42d33e 100644 --- a/opnfv_testapi/resources/review_handlers.py +++ b/opnfv_testapi/resources/review_handlers.py @@ -72,7 +72,10 @@ class ReviewsCLHandler(GenericReviewHandler): raises.Forbidden(message.unauthorized()) role = self.get_secure_cookie(auth_const.ROLE) if 'reviewer' not in role.split(','): - raises.Unauthorized(message.no_auth()) + self.finish_request({'code': 403, + 'msg': 'You do not have the reviewer ' + 'permision / role!'}) + return test = yield dbapi.db_find_one( 'tests', {'id': self.json_args['test_id']}) if test['owner'] == self.json_args['reviewer_openid']: |