fix: fix policies
This commit is contained in:
parent
1ccc5d1141
commit
4b56de03a3
|
@ -25,7 +25,7 @@ func GetCasbin(logger *zap.Logger) *casbin.Enforcer {
|
|||
}
|
||||
|
||||
// Add policies after creating the enforcer
|
||||
_ = a.AddPolicy("p", "p", []string{"admin", "/admin*", "(GET|POST|DELETE)"})
|
||||
_ = a.AddPolicy("p", "p", []string{"admin", "/admin*"})
|
||||
|
||||
err = e.LoadPolicy()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue