Skip to content

Commit 32f9f7a

Browse files
vimzoomerCopilot
andcommitted
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent dcdfd80 commit 32f9f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

casbin_adapter/enforcer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _load(self):
4343
self.set_role_manager(role_manager)
4444

4545
def __getattribute__(self, name):
46-
safe_methods = ["__init__", "_load", "_initialized", "__class__"]
46+
safe_methods = ["__init__", "_load", "_initialized", "__class__", "db_alias"]
4747
if not super().__getattribute__("_initialized") and name not in safe_methods:
4848
initialize_enforcer(super().__getattribute__("db_alias"))
4949
if not super().__getattribute__("_initialized"):

0 commit comments

Comments
 (0)