Skip to content

Commit 473731f

Browse files
committed
minor
1 parent bd47646 commit 473731f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

vok-security/src/main/kotlin/eu/vaadinonkotlin/security/VokViewAccessChecker.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ public class VokViewAccessChecker : ViewAccessChecker(AccessAnnotationChecker())
2525
enable()
2626
}
2727

28-
// Vaadin 23.0.x uses AccessAnnotationChecker to get principal.
29-
// Vaadin 23.1.0 retrieves the principal this way.
3028
override fun getPrincipal(request: VaadinRequest?): Principal? = VaadinOnKotlin.loggedInUserResolver.getCurrentUser()
3129
override fun getRolesChecker(request: VaadinRequest?): Function<String, Boolean> = Function { role ->
3230
VaadinOnKotlin.loggedInUserResolver.getCurrentUserRoles().contains(role)

0 commit comments

Comments
 (0)