Skip to content

Commit

Permalink
fix: disabled casbin should allow all requests (#235)
Browse files Browse the repository at this point in the history
Signed-off-by: timabilov <[email protected]>

Co-authored-by: timabilov <[email protected]>
  • Loading branch information
timabilov and timabilov authored Dec 17, 2021
1 parent 2f4fca5 commit ecd4ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casbin/core_enforcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def enforce_ex(self, *rvals):
mtype = "m"

if not self.enabled:
return [False, []]
return [True, []]

functions = self.fm.get_functions()

Expand Down

0 comments on commit ecd4ff8

Please sign in to comment.