Skip to content

Commit 19e17ad

Browse files
authored
Merge pull request #107 from eadwinCode/auth_none_fix
Bug Fixes: Fixed auth=None bug on controller
2 parents 4fd1b8b + b721895 commit 19e17ad

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)