Disable web endpoints for app repos

This commit is contained in:
Joseph Schorr 2017-03-22 15:29:44 -04:00
parent 54efed62ee
commit 178373293d
3 changed files with 12 additions and 1 deletions

View file

@ -31,6 +31,8 @@ def attach_github_build_trigger(namespace_name, repo_name):
if not repo:
msg = 'Invalid repository: %s/%s' % (namespace_name, repo_name)
abort(404, message=msg)
elif repo.kind.name != 'image':
abort(501)
trigger = model.build.create_build_trigger(repo, 'github', token, current_user.db_user())
repo_path = '%s/%s' % (namespace_name, repo_name)