casbin / xorm-adapter

Xorm adapter for Casbin
https://github.com/casbin/casbin
Apache License 2.0
384 stars 58 forks source link

feat: add LoadFilteredPolicy #31

Closed dovics closed 4 years ago

dovics commented 4 years ago

fix: #7

The postgres test will produce the following error, this is just a sequence problem, so I did not add it to the test

--- FAIL: TestAdapters (0.59s)
    adapter_test.go:153: Policy:  [[data2_admin data2 write] [data2_admin data2 read]] , supposed to be  [[data2_admin data2 read] [data2_admin data2 write]]
coveralls commented 4 years ago

Coverage Status

Coverage decreased (-1.0%) to 65.854% when pulling 299dcecb30b89c9f0c09512202dec4e0b5196b6a on dovics:loadFilteredPolicy into 695d84de0d262c204a583e4a3fb1a59e04fd0b37 on casbin:master.

hsluoyz commented 4 years ago

lgtm