Browse Source

Return 404 for personal ciphers on the admin edit route

pull/7906/head
Daniel García 3 weeks ago
parent
commit
6831a27d16
No known key found for this signature in database GPG Key ID: FC8A7D14C3CD543A
  1. 2
      src/api/core/ciphers.rs

2
src/api/core/ciphers.rs

@ -692,7 +692,7 @@ async fn put_cipher_admin(
) -> JsonResult {
// Only organization ciphers can be edited here, put_cipher() rejects an organization ID that isn't the cipher's
if data.organization_id.is_none() {
err!("Cipher doesn't exist")
err_code!("Resource not found.", "Cipher is not an organization cipher", Status::NotFound.code);
}
put_cipher(cipher_id, data, headers, conn, nt).await

Loading…
Cancel
Save