Skip to content

Commit

Permalink
Merge pull request #9 from tangyang9464/fix-savaPolicy
Browse files Browse the repository at this point in the history
fix: savePolicy repeat save
  • Loading branch information
hsluoyz authored Oct 3, 2021
2 parents dbfa188 + a86c07d commit 686bc3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/casbin/adapter/RedisAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void loadPolicy(Model model) {
*/
@Override
public void savePolicy(Model model) {
jedis.del(this.key);
extracted(model, "p");
extracted(model, "g");
}
Expand Down

0 comments on commit 686bc3e

Please sign in to comment.