Merge pull request #1822 from coreos-inc/run-build-admin
Allow repository admins to invoke build triggers manually
This commit is contained in:
commit
949ceae4eb
5 changed files with 10 additions and 20 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue