We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd47646 commit 473731fCopy full SHA for 473731f
vok-security/src/main/kotlin/eu/vaadinonkotlin/security/VokViewAccessChecker.kt
@@ -25,8 +25,6 @@ public class VokViewAccessChecker : ViewAccessChecker(AccessAnnotationChecker())
25
enable()
26
}
27
28
- // Vaadin 23.0.x uses AccessAnnotationChecker to get principal.
29
- // Vaadin 23.1.0 retrieves the principal this way.
30
override fun getPrincipal(request: VaadinRequest?): Principal? = VaadinOnKotlin.loggedInUserResolver.getCurrentUser()
31
override fun getRolesChecker(request: VaadinRequest?): Function<String, Boolean> = Function { role ->
32
VaadinOnKotlin.loggedInUserResolver.getCurrentUserRoles().contains(role)
0 commit comments