diff options
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']: |