Skip to content

Commit f52874d

Browse files
committed
Allows the variables app and adapter to be None when the CasbinEnforcer is initialized.
1 parent e83e71b commit f52874d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flask_authz/casbin_enforcer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CasbinEnforcer:
1616

1717
e = None
1818

19-
def __init__(self, app, adapter, watcher=None):
19+
def __init__(self, app=None, adapter=None, watcher=None):
2020
"""
2121
Args:
2222
app (object): Flask App object to get Casbin Model

0 commit comments

Comments
 (0)