refactor: rename opa file
This commit is contained in:
parent
e6299c0010
commit
f778100bc9
2 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ type PermissionService struct {
|
||||||
func NewPermissionService() *PermissionService {
|
func NewPermissionService() *PermissionService {
|
||||||
query, err := rego.New(
|
query, err := rego.New(
|
||||||
rego.Query("allow = data.problem.rbac.allow"),
|
rego.Query("allow = data.problem.rbac.allow"),
|
||||||
rego.Load([]string{"./opa/problem.rego"}, nil),
|
rego.Load([]string{"./opa/all.rego"}, nil),
|
||||||
).PrepareForEval(context.TODO())
|
).PrepareForEval(context.TODO())
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue