Closed tangyang9464 closed 3 years ago
@antipopp plz review.
It works only once in my setup. The first time I run:
_, err := enforcer.UpdatePolicy([]string{"admin", "domain1", "users", "allow"}, []string{"admin", "domain1", "users", "deny"})
if err != nil {
return err
}
it works, but then if I run:
_, err := enforcer.UpdatePolicy([]string{"admin", "domain1", "users", "deny"}, []string{"admin", "domain1", "users", "allow"})
if err != nil {
return err
}
the function still returns true and no errors, but nothing changes in the DB.
@antipopp fixed.
works as intended, thank you!
:tada: This PR is included in version 1.0.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Signed-off-by: tangyang9464 tangyang9464@163.com
fix: #33