Skip to content

Commit 21acdc3

Browse files
andythsuasu80
authored andcommitted
Replace originalIdentity's groups with identity's groups in set session authorization
1 parent 0221cb1 commit 21acdc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/trino-main/src/main/java/io/trino/Session.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ public SessionRepresentation toSessionRepresentation()
548548
identity.getUser(),
549549
originalIdentity.getUser(),
550550
originalIdentity.getEnabledRoles(),
551-
originalIdentity.getGroups(),
551+
identity.getGroups(),
552552
originalIdentity.getGroups(),
553553
identity.getPrincipal().map(Principal::toString),
554554
identity.getEnabledRoles(),

0 commit comments

Comments
 (0)