Require API login for the build APIs.

This commit is contained in:
yackob03 2013-10-26 17:41:29 -04:00
parent dc7a62db67
commit be035637f6

View file

@ -363,6 +363,7 @@ def get_repo_api(namespace, repository):
@app.route('/api/repository/<path:repository>/build/', methods=['GET'])
@api_login_required
@parse_repository_name
def get_repo_builds(namespace, repository):
permission = ModifyRepositoryPermission(namespace, repository)
@ -395,6 +396,7 @@ def get_repo_builds(namespace, repository):
@app.route('/api/repository/<path:repository>/build/', methods=['POST'])
@api_login_required
@parse_repository_name
def request_repo_build(namespace, repository):
permission = ModifyRepositoryPermission(namespace, repository)