1
0
mirror of synced 2026-08-04 09:17:02 +00:00

Fix incorrect rendering of SpEL expression example tabs

This commit is contained in:
Meehdi
2024-12-25 18:33:14 +01:00
committed by Rob Winch
parent 5fdacef398
commit e67b5f8356
@@ -216,13 +216,15 @@ Java::
----
@PreAuthorize("hasAuthority('permission:read') || hasRole('ADMIN')")
----
======
.Kotlin
[source,kotlin,role="kotlin"]
Kotlin::
+
[source,kotlin,role="secondary"]
----
@PreAuthorize("hasAuthority('permission:read') || hasRole('ADMIN')")
----
======
However, you could instead grant `permission:read` to those with `ROLE_ADMIN`.
One way to do this is with a `RoleHierarchy` like so: