diff options
Diffstat (limited to 'test/policies/access_method/policy.rego')
-rw-r--r-- | test/policies/access_method/policy.rego | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/policies/access_method/policy.rego b/test/policies/access_method/policy.rego new file mode 100644 index 0000000..618aacc --- /dev/null +++ b/test/policies/access_method/policy.rego @@ -0,0 +1,13 @@ +package access_method + +import rego.v1 + +allow if { + input.path == ["users"] + input.method == "POST" +} + +allow if { + input.path == ["users", input.user_id] + input.method == "GET" +} |