mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-07 11:00:28 +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