diff --git a/nc_py_api/ex_app/integration_fastapi.py b/nc_py_api/ex_app/integration_fastapi.py index c1ffdb64..36ab326d 100644 --- a/nc_py_api/ex_app/integration_fastapi.py +++ b/nc_py_api/ex_app/integration_fastapi.py @@ -247,7 +247,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: conn = HTTPConnection(scope) url_path = conn.url.path.lstrip("/") - if not fnmatch.filter(self._disable_for, url_path): + if not any(fnmatch.fnmatch(url_path, i) for i in self._disable_for): try: scope["username"] = _request_sign_check(conn, AsyncNextcloudApp()) except HTTPException as exc: