Browse Source
Return 404 for personal ciphers on the admin edit route
pull/7906/head
Daniel García
3 weeks ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
1 additions and
1 deletions
-
src/api/core/ciphers.rs
|
|
@ -692,7 +692,7 @@ async fn put_cipher_admin( |
|
|
) -> JsonResult { |
|
|
) -> JsonResult { |
|
|
// Only organization ciphers can be edited here, put_cipher() rejects an organization ID that isn't the cipher's
|
|
|
// 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() { |
|
|
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 |
|
|
put_cipher(cipher_id, data, headers, conn, nt).await |
|
|
|