diff --git a/src/auth.rs b/src/auth.rs index af279f25..fec9bad6 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -912,7 +912,9 @@ macro_rules! permission_headers { ip: headers.ip, }) } else { - err_handler!("You need to be Admin or Owner to call this endpoint") + // Forbidden as in Bitwarden's permission requirements + error!(target: "auth", "The current user is missing the permission for this endpoint"); + Outcome::Error((rocket::http::Status::Forbidden, "You don't have permission to call this endpoint")) } } }