Show More
@@ -502,6 +502,11 b' def comment_pull_request(' | |||
|
502 | 502 | else: |
|
503 | 503 | raise JSONRPCError('userid is not the same as your user') |
|
504 | 504 | |
|
505 | if pull_request.is_closed(): | |
|
506 | raise JSONRPCError( | |
|
507 | 'pull request `%s` comment failed, pull request is closed' % ( | |
|
508 | pullrequestid,)) | |
|
509 | ||
|
505 | 510 | if not PullRequestModel().check_user_read( |
|
506 | 511 | pull_request, apiuser, api=True): |
|
507 | 512 | raise JSONRPCError('repository `%s` does not exist' % (repoid,)) |
General Comments 0
You need to be logged in to leave comments.
Login now