Skip to content

Commit

Permalink
fix: avoid duplicate adapter entries (#259)
Browse files Browse the repository at this point in the history
* fix duplicate adapter entries

* fix: duplicate adapter entries
  • Loading branch information
cs1137195420 authored May 20, 2022
1 parent a42a590 commit 8d74386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casbin/persist/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def load_policy_line(line, model):
if key not in model.model[sec].keys():
return

model.model[sec][key].policy.append(tokens[1:])
model.add_policy(sec, key, tokens[1:])


class Adapter:
Expand Down

0 comments on commit 8d74386

Please sign in to comment.