Fix API info calls access (#2464)

This commit is contained in:
Pascal Vizeli 2021-01-25 10:45:08 +01:00 committed by GitHub
parent 49e4bc9381
commit 8acbb7d6f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ NO_SECURITY_CHECK = re.compile(
# Observer allow API calls # Observer allow API calls
OBSERVER_CHECK = re.compile( OBSERVER_CHECK = re.compile(
r"^(?:" r"^(?:"
r"|/[^/]+/info" r"|/.+/info"
r")$" r")$"
) )
@ -63,7 +63,7 @@ ADDONS_API_BYPASS = re.compile(
ADDONS_ROLE_ACCESS = { ADDONS_ROLE_ACCESS = {
ROLE_DEFAULT: re.compile( ROLE_DEFAULT: re.compile(
r"^(?:" r"^(?:"
r"|/[^/]+/info" r"|/.+/info"
r"|/addons" r"|/addons"
r")$" r")$"
), ),