Call Enforcer.ClearPolicy() to remove previous rules in DB.

This commit is contained in:
Yang Luo
2021-05-13 22:50:50 +08:00
parent f4db41acb3
commit fce4efcb84
3 changed files with 9 additions and 7 deletions

View File

@ -65,6 +65,8 @@ m = (r.subOwner == p.subOwner || p.subOwner == "*") && \
panic(err)
}
Enforcer.ClearPolicy()
//if len(Enforcer.GetPolicy()) == 0 {
if true {
ruleText := `