diff --git a/deployment/default-policies/entitlements.rego b/deployment/default-policies/entitlements.rego index 88858f289c9feb6a6e9c3df086b7f6daad699b3f..d4a0de05a7fa042e4a3cb2823338acdb377d7289 100644 --- a/deployment/default-policies/entitlements.rego +++ b/deployment/default-policies/entitlements.rego @@ -6,7 +6,7 @@ headers = { "Content-Type": "application/json", "data-partition-id":input.datapartitionid, "Authorization": sprintf("Bearer %v", [input.token]), - "x-user-id": object.get(input, "xuserid", null), + "x-user-id": input.xuserid, "Accept": "application/json" } diff --git a/deployment/default-policies/legal.rego b/deployment/default-policies/legal.rego index 52115c64f4564be8f87da9d3ec7fa3aeaf3ea58e..36f9ac6a6d8f29f143837bc7c85aa94e96137e53 100644 --- a/deployment/default-policies/legal.rego +++ b/deployment/default-policies/legal.rego @@ -6,7 +6,7 @@ headers = { "content-type": "application/json", "data-partition-id":input.datapartitionid, "authorization": sprintf("Bearer %v", [input.token]), - "x-user-id": object.get(input, "xuserid", null), + "x-user-id": input.xuserid, "accept": "application/json" }