Make the frontend agnostic to why a trigger can be run manually

This commit is contained in:
Joseph Schorr 2016-09-09 16:54:46 -04:00
parent b979f99964
commit 3f2447d831
4 changed files with 6 additions and 7 deletions

View file

@ -76,7 +76,7 @@ def trigger_view(trigger, can_read=False, can_admin=False, for_build=False):
'repository_url': repo_url if can_read else None,
'config': build_trigger.config if can_admin else {},
'is_connected_user': is_connected_user,
'can_invoke': is_connected_user,
}
if not for_build and can_admin and trigger.pull_robot: