From 8acbb7d6f0c8ec3c6e8836c75c87f7c1357fe72f Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 25 Jan 2021 10:45:08 +0100 Subject: [PATCH] Fix API info calls access (#2464) --- supervisor/api/security.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supervisor/api/security.py b/supervisor/api/security.py index 560db03bb..65a84bc65 100644 --- a/supervisor/api/security.py +++ b/supervisor/api/security.py @@ -43,7 +43,7 @@ NO_SECURITY_CHECK = re.compile( # Observer allow API calls OBSERVER_CHECK = re.compile( r"^(?:" - r"|/[^/]+/info" + r"|/.+/info" r")$" ) @@ -63,7 +63,7 @@ ADDONS_API_BYPASS = re.compile( ADDONS_ROLE_ACCESS = { ROLE_DEFAULT: re.compile( r"^(?:" - r"|/[^/]+/info" + r"|/.+/info" r"|/addons" r")$" ),