We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fddd254 commit 943a402Copy full SHA for 943a402
1 file changed
src/handlers/http/modal/ingest/ingestor_rbac.rs
@@ -49,7 +49,7 @@ pub async fn post_user(
49
let req_tenant_id = get_tenant_id_from_request(&req);
50
let req_tenant = req_tenant_id.as_deref().unwrap_or(DEFAULT_TENANT);
51
if req_tenant.ne(DEFAULT_TENANT)
52
- && (req_tenant.eq(user.tenant.as_deref().unwrap_or(DEFAULT_TENANT)))
+ && (req_tenant.ne(user.tenant.as_deref().unwrap_or(DEFAULT_TENANT)))
53
{
54
return Err(RBACError::Anyhow(anyhow::Error::msg(
55
"non super-admin user trying to create user for another tenant",
0 commit comments