diff --git a/apps/labrinth/src/routes/internal/billing.rs b/apps/labrinth/src/routes/internal/billing.rs index 8d313a4d..d6dc71bb 100644 --- a/apps/labrinth/src/routes/internal/billing.rs +++ b/apps/labrinth/src/routes/internal/billing.rs @@ -880,11 +880,11 @@ pub async fn active_servers( ) -> Result { let master_key = dotenvy::var("PYRO_API_KEY")?; - if !req + if req .head() .headers() .get("X-Master-Key") - .is_some_and(|it| it.as_bytes() == master_key.as_bytes()) + .is_none_or(|it| it.as_bytes() != master_key.as_bytes()) { return Err(ApiError::CustomAuthentication( "Invalid master key".to_string(),