From ec312ff9913149f8342643190fad7b786b0a5ec8 Mon Sep 17 00:00:00 2001 From: Nikhil Sinha Date: Sun, 3 May 2026 20:05:21 +0700 Subject: [PATCH] fix: user sync to ingestor --- src/handlers/http/modal/ingest/ingestor_rbac.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/http/modal/ingest/ingestor_rbac.rs b/src/handlers/http/modal/ingest/ingestor_rbac.rs index 5bf9bde59..7f1bc4f73 100644 --- a/src/handlers/http/modal/ingest/ingestor_rbac.rs +++ b/src/handlers/http/modal/ingest/ingestor_rbac.rs @@ -49,7 +49,7 @@ pub async fn post_user( let req_tenant_id = get_tenant_id_from_request(&req); let req_tenant = req_tenant_id.as_deref().unwrap_or(DEFAULT_TENANT); if req_tenant.ne(DEFAULT_TENANT) - && (req_tenant.eq(user.tenant.as_deref().unwrap_or(DEFAULT_TENANT))) + && (req_tenant.ne(user.tenant.as_deref().unwrap_or(DEFAULT_TENANT))) { return Err(RBACError::Anyhow(anyhow::Error::msg( "non super-admin user trying to create user for another tenant",