Only show signing UI when namespace is explicitly whitelisted
This commit is contained in:
parent
f5e4380a57
commit
85d382cd84
4 changed files with 11 additions and 3 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue