From 4457c5aa5a2d0b98fdc7e0f890c5dd118b3a2483 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 30 Dec 2024 09:16:03 +0100 Subject: [PATCH] Revert "remove setting unused currentSubjectOrAssumedRolesUuids" This reverts commit 281736c8e336bc760024e646ab6259194d43bdd8. --- src/main/resources/db/changelog/1-rbac/1054-rbac-context.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/db/changelog/1-rbac/1054-rbac-context.sql b/src/main/resources/db/changelog/1-rbac/1054-rbac-context.sql index 4250f4d0..d12eac5e 100644 --- a/src/main/resources/db/changelog/1-rbac/1054-rbac-context.sql +++ b/src/main/resources/db/changelog/1-rbac/1054-rbac-context.sql @@ -108,6 +108,8 @@ begin execute format('set local hsadminng.currentSubjectUuid to %L', coalesce(currentSubjectUuid::text, '')); execute format('set local hsadminng.assumedRoles to %L', assumedRoles); + execute format('set local hsadminng.currentSubjectOrAssumedRolesUuids to %L', -- FIXME: can this be removed? + (select array_to_string(rbac.determinecurrentsubjectorassumedrolesuuids(currentSubjectUuid, assumedRoles), ';'))); raise notice 'Context defined as: %, %, %, [%]', currentTask, currentRequest, currentSubject, assumedRoles; end; $$;