diff --git a/opa/user/delete.rego b/opa/user/delete.rego index ec31a55..541466e 100644 --- a/opa/user/delete.rego +++ b/opa/user/delete.rego @@ -1,11 +1,11 @@ -package user.delete +package USER.DELETE default allow := false -allow := true { - input.uuid == input.owner +allow { + input.uuid == input.owner } -allow := true { - input.role == "admin" +allow { + input.role == "admin" } diff --git a/opa/user/list.rego b/opa/user/list.rego index 4d92535..6774831 100644 --- a/opa/user/list.rego +++ b/opa/user/list.rego @@ -1,7 +1,7 @@ -package user.list +package USER.LIST default allow := false -allow := true { - input.role == "admin" +allow { + input.role == "admin" } diff --git a/opa/user/read.rego b/opa/user/read.rego index 16132e4..5650aae 100644 --- a/opa/user/read.rego +++ b/opa/user/read.rego @@ -1,4 +1,4 @@ -package user.read +package USER.READ default allow := false diff --git a/opa/user/update.rego b/opa/user/update.rego index 54d80a0..6cde81b 100644 --- a/opa/user/update.rego +++ b/opa/user/update.rego @@ -1,11 +1,11 @@ -package user.update +package USER.UPDATE default allow := false -allow := true { - input.uuid == input.owner +allow { + input.uuid == input.owner } -allow := true { - input.role == "admin" +allow { + input.role == "admin" }