Skip to content

Commit b721895

Browse files
committed
Bug Fixes: Fixed auth=None bug on controller
1 parent 0862f7a commit b721895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ninja_extra/controllers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def __init__(
313313
self._prefix_has_route_param = True
314314

315315
self.has_auth_async = False
316-
if auth is not NOT_SET:
316+
if auth and auth is not NOT_SET:
317317
auth_callbacks = isinstance(auth, Sequence) and auth or [auth]
318318
for _auth in auth_callbacks:
319319
_call_back = _auth if inspect.isfunction(_auth) else _auth.__call__

0 commit comments

Comments
 (0)