fix: fix policies

This commit is contained in:
Derrick Hammer 2024-01-15 23:56:44 -05:00
parent 1ccc5d1141
commit 4b56de03a3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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 {