refactor: rename opa file

This commit is contained in:
Vyacheslav1557 2024-08-23 14:20:53 +05:00
parent e6299c0010
commit f778100bc9
2 changed files with 1 additions and 1 deletions

View file

@ -13,7 +13,7 @@ type PermissionService struct {
func NewPermissionService() *PermissionService {
query, err := rego.New(
rego.Query("allow = data.problem.rbac.allow"),
rego.Load([]string{"./opa/problem.rego"}, nil),
rego.Load([]string{"./opa/all.rego"}, nil),
).PrepareForEval(context.TODO())
if err != nil {