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 0862f7a commit b721895Copy full SHA for b721895
ninja_extra/controllers/base.py
@@ -313,7 +313,7 @@ def __init__(
313
self._prefix_has_route_param = True
314
315
self.has_auth_async = False
316
- if auth is not NOT_SET:
+ if auth and auth is not NOT_SET:
317
auth_callbacks = isinstance(auth, Sequence) and auth or [auth]
318
for _auth in auth_callbacks:
319
_call_back = _auth if inspect.isfunction(_auth) else _auth.__call__
0 commit comments