We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a9f33 commit 0257d78Copy full SHA for 0257d78
acapy_agent/admin/decorators/auth.py
@@ -97,8 +97,10 @@ def _base_wallet_route_access(additional_routes: str, request_path: str) -> bool
97
def _build_additional_routes_pattern(pattern_string: str) -> Optional[Pattern]:
98
"""Build pattern from space delimited list of paths."""
99
# create array and add word boundary to avoid false positives
100
- paths = pattern_string.split(" ")
101
- return re.compile("^((?:)" + "|".join(paths) + ")$")
+ if pattern_string:
+ paths = pattern_string.split(" ")
102
+ return re.compile("^((?:)" + "|".join(paths) + ")$")
103
+ return None
104
105
106
def _matches_additional_routes(pattern: Pattern, path: str) -> bool:
0 commit comments