From 2e3b1779fd1a19f275ee2b2ed308636c393b4a01 Mon Sep 17 00:00:00 2001 From: Daisie Huang Date: Tue, 31 Dec 2024 13:21:02 -0800 Subject: [PATCH] possible other form --- permissions_engine/permissions.rego | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/permissions_engine/permissions.rego b/permissions_engine/permissions.rego index a860910..0df8827 100644 --- a/permissions_engine/permissions.rego +++ b/permissions_engine/permissions.rego @@ -68,6 +68,10 @@ allowed if { datasets[input.body.program] == true } +else if { + input.body.program in datasets +} + else if { site_admin }