From 09b77d9fde8af86b3aedc7b1f572ee6fa1fccb70 Mon Sep 17 00:00:00 2001 From: Daisie Huang Date: Tue, 21 May 2024 20:25:06 -0700 Subject: [PATCH] now site admin can be calculated on authz.rego --- permissions_engine/authz.rego | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/permissions_engine/authz.rego b/permissions_engine/authz.rego index 0ae0dd7..0743566 100644 --- a/permissions_engine/authz.rego +++ b/permissions_engine/authz.rego @@ -69,3 +69,8 @@ allow { input.path == ["v1", "data", "service", "service-info"] input.method == "GET" } + +# Site admin should be able to see anything +allow { + data.permissions.site_admin == true +}