From 6831a27d16bb81871b8d2a86c4a5d5a78f3668d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Wed, 28 Oct 2026 23:07:47 +0100 Subject: [PATCH] Return 404 for personal ciphers on the admin edit route --- src/api/core/ciphers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index ecba32f5..5070d8f4 100644 --- a/src/api/core/ciphers.rs +++ b/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