From cd11b002eed32708282e5a98dab3f16f769ef389 Mon Sep 17 00:00:00 2001 From: songbing01249 Date: Wed, 2 Aug 2023 18:22:42 +0800 Subject: [PATCH] fix(trigger): session invalid issue --- cmdb-api/api/lib/perm/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdb-api/api/lib/perm/auth.py b/cmdb-api/api/lib/perm/auth.py index 7f53e77..c57a4b5 100644 --- a/cmdb-api/api/lib/perm/auth.py +++ b/cmdb-api/api/lib/perm/auth.py @@ -108,7 +108,7 @@ def _auth_with_ip_white_list(): def _auth_with_app_token(): - if _auth_with_session(): + if _auth_with_session() or _auth_with_token(): if not is_app_admin(request.values.get('app_id')) and request.method != "GET": return False elif is_app_admin(request.values.get('app_id')):