From 6ae171b306687c313a815616e31a0c50b7960b3d Mon Sep 17 00:00:00 2001 From: Keshav Prasad <keshavprasadms@gmail.com> Date: Thu, 13 Jan 2022 13:11:03 +0530 Subject: [PATCH] fix: base64 issues in commenting (#3150) --- kubernetes/opa/common/common.rego | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kubernetes/opa/common/common.rego b/kubernetes/opa/common/common.rego index 23066dba5..65d6045bc 100644 --- a/kubernetes/opa/common/common.rego +++ b/kubernetes/opa/common/common.rego @@ -51,8 +51,7 @@ token_roles = user_token.payload.roles { userid = token_userid { not http_request.headers["x-authenticated-for"] } else = token_userid { - # This is a temporary fix as the mobile app is sending empty headers as x-authenticated-for: "" - http_request.headers["x-authenticated-for"] == "" + http_request.headers["x-authenticated-for"] == "" # This is a temporary fix as the mobile app is sending empty headers as x-authenticated-for: "" } else = for_token_userid { http_request.headers["x-authenticated-for"] http_request.headers["x-authenticated-for"] != "" -- GitLab