Closed wzhj2326 closed 4 years ago
For historical reasons, the current rule deduplication is done by the adapter. You can refer to the method loadPolicy - transformToCasbinRule custom adapter for processing. We will adjust this feature in a later version.
@tldyl please follow how Golang Casbin did: https://github.com/casbin/casbin/pull/490 to fix this issue.
org.casbin.jcasbin.main.InternalEnforcer.java // When the added policy exists, it will cause repeated additions in the storage. thanks.