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 2448f2f commit dcf8b20Copy full SHA for dcf8b20
flask_authz/casbin_enforcer.py
@@ -78,8 +78,9 @@ def wrapper(*args, **kwargs):
78
if self._owner_loader:
79
self.app.logger.info("Get owner from owner_loader")
80
for owner in self._owner_loader():
81
+ owner = owner.strip('"') if isinstance(owner, str) else owner
82
if self.e.enforce(
- owner.strip('"'), uri, request.method
83
+ owner, uri, request.method
84
):
85
return func(*args, **kwargs)
86
for header in map(str.lower, self.app.config.get("CASBIN_OWNER_HEADERS")):
0 commit comments