Remove test "True" that breaks permissions on the Github trigger

This commit is contained in:
Joseph Schorr 2014-05-01 21:35:07 -04:00
parent a5a61576ae
commit fe2430f158

View file

@ -75,7 +75,7 @@ def build_trigger_webhook(namespace, repository, trigger_uuid):
logger.debug('Webhook received for %s/%s with uuid %s', namespace,
repository, trigger_uuid)
permission = ModifyRepositoryPermission(namespace, repository)
if True or permission.can():
if permission.can():
try:
trigger = model.get_build_trigger(namespace, repository, trigger_uuid)
except model.InvalidBuildTriggerException: