From fd3a4d887e782ec1dc563a7ab26b551bc6945d0e Mon Sep 17 00:00:00 2001 From: xinwen Date: Wed, 17 Mar 2021 16:51:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Root=20=E7=BB=84=E7=BB=87=E6=9F=A5?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E5=91=BD=E4=BB=A4=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/backends/command/es.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/terminal/backends/command/es.py b/apps/terminal/backends/command/es.py index 5c880a120..009435a5b 100644 --- a/apps/terminal/backends/command/es.py +++ b/apps/terminal/backends/command/es.py @@ -121,7 +121,11 @@ class CommandStore(): org_id = match.get('org_id') real_default_org_id = '00000000-0000-0000-0000-000000000002' - if org_id in (real_default_org_id, ''): + root_org_id = '00000000-0000-0000-0000-000000000000' + + if org_id == root_org_id: + match.pop('org_id') + elif org_id in (real_default_org_id, ''): match.pop('org_id') should.append({ 'bool':{