From 46022abb71e2038a145cf54916e709b262ad8b90 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 17 Jul 2021 21:29:32 +0200 Subject: KB66 Upgrade to Quarkus 2.0.2, fix authentication. Change-Id: I251fbdbe915e32aaeb8daa087691853da17f4799 --- src/main/java/eu/mulk/mulkcms2/benki/login/RoleAugmentor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/eu/mulk/mulkcms2/benki/login/RoleAugmentor.java b/src/main/java/eu/mulk/mulkcms2/benki/login/RoleAugmentor.java index 3aafc0e..37d865f 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/login/RoleAugmentor.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/login/RoleAugmentor.java @@ -30,7 +30,6 @@ public class RoleAugmentor implements SecurityIdentityAugmentor { return augmentWithRoles(identity, context); } - @Transactional Uni augmentWithRoles( SecurityIdentity identity, AuthenticationRequestContext context) { return context.runBlocking( @@ -41,6 +40,7 @@ public class RoleAugmentor implements SecurityIdentityAugmentor { } @CacheResult(cacheName = "login-role-cache") + @Transactional Set getUserLoginRoles(String userNickname) { var user = User.findByNicknameWithRoles(userNickname); return user.effectiveRoles.stream() -- cgit v1.2.3