##// END OF EJS Templates
Opening pull request shouldn't be accessible by anonymous users
marcink -
r2627:6bd62617 beta
parent child Browse files
Show More
@@ -84,6 +84,7 b' class PullrequestsController(BaseRepoCon'
84 84 c.repo_name = repo_name
85 85 return render('/pullrequests/pullrequest_show_all.html')
86 86
87 @NotAnonymous()
87 88 def index(self):
88 89 org_repo = c.rhodecode_db_repo
89 90
@@ -281,6 +282,7 b' class PullrequestsController(BaseRepoCon'
281 282 c.target_repo = c.pull_request.org_repo.repo_name
282 283 return render('/pullrequests/pullrequest_show.html')
283 284
285 @NotAnonymous()
284 286 @jsonify
285 287 def comment(self, repo_name, pull_request_id):
286 288 pull_request = PullRequest.get_or_404(pull_request_id)
@@ -337,6 +339,7 b' class PullrequestsController(BaseRepoCon'
337 339
338 340 return data
339 341
342 @NotAnonymous()
340 343 @jsonify
341 344 def delete_comment(self, repo_name, comment_id):
342 345 co = ChangesetComment.get(comment_id)
General Comments 0
You need to be logged in to leave comments. Login now