Merge pull request #1822 from coreos-inc/run-build-admin

Allow repository admins to invoke build triggers manually
This commit is contained in:
josephschorr 2016-09-14 14:43:53 -04:00 committed by GitHub
commit 949ceae4eb
5 changed files with 10 additions and 20 deletions

View file

@ -199,9 +199,8 @@ angular.module('quay').directive('repoPanelBuilds', function () {
};
$scope.askRunTrigger = function(trigger) {
if (!trigger.is_connected_user) {
bootbox.alert('For security reasons, only the user that created this trigger can ' +
'manually invoke this trigger');
if (!trigger.can_invoke) {
bootbox.alert('You do not have permission to manually invoke this trigger');
return;
}