Only show signing UI when namespace is explicitly whitelisted

This commit is contained in:
Evan Cordell 2017-05-08 12:46:38 -04:00
parent f5e4380a57
commit 85d382cd84
4 changed files with 11 additions and 3 deletions

View file

@ -90,6 +90,10 @@ angular.module('quay').directive('repoPanelSettings', function () {
$scope.repository.is_public = newAccess == 'public';
}, ApiService.errorDisplay('Could not change visibility'));
};
$scope.signingWhitelisted = function(repository) {
return Config.SIGNING_NAMESPACE_WHITELIST.indexOf(repository.namespace) !== -1;
};
}
};
return directiveDefinitionObject;