mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
Call Enforcer.ClearPolicy() to remove previous rules in DB.
This commit is contained in:
@ -65,6 +65,8 @@ m = (r.subOwner == p.subOwner || p.subOwner == "*") && \
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Enforcer.ClearPolicy()
|
||||
|
||||
//if len(Enforcer.GetPolicy()) == 0 {
|
||||
if true {
|
||||
ruleText := `
|
||||
|
Reference in New Issue
Block a user