Remove useless PermissionRule

This commit is contained in:
Yang Luo
2023-11-03 00:39:16 +08:00
parent 8a195715d0
commit 9442aa9f7a
3 changed files with 1 additions and 17 deletions

View File

@ -96,7 +96,7 @@ p, *, *, GET, /api/get-organization-names, *, *
sa := stringadapter.NewAdapter(ruleText)
// load all rules from string adapter to enforcer's memory
err := sa.LoadPolicy(Enforcer.GetModel())
err = sa.LoadPolicy(Enforcer.GetModel())
if err != nil {
panic(err)
}