mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 18:46:29 +00:00
Fix API info calls access (#2464)
This commit is contained in:
parent
49e4bc9381
commit
8acbb7d6f0
@ -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")$"
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user