summaryrefslogtreecommitdiff
path: root/src/api/client_server/keys.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/client_server/keys.rs')
-rw-r--r--src/api/client_server/keys.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/api/client_server/keys.rs b/src/api/client_server/keys.rs
index ba89ece..21f71b6 100644
--- a/src/api/client_server/keys.rs
+++ b/src/api/client_server/keys.rs
@@ -151,18 +151,6 @@ pub async fn upload_signatures_route(
let key = serde_json::to_value(key)
.map_err(|_| Error::BadRequest(ErrorKind::InvalidParam, "Invalid key JSON"))?;
- let is_signed_key = match key.get("usage") {
- Some(usage) => usage
- .as_array()
- .map(|usage| !usage.contains(&json!("master")))
- .unwrap_or(false),
- None => true,
- };
-
- if !is_signed_key {
- continue;
- }
-
for signature in key
.get("signatures")
.ok_or(Error::BadRequest(