Skip to content

Commit e67b5f8

Browse files
Meehdirwinch
authored andcommitted
Fix incorrect rendering of SpEL expression example tabs
1 parent 5fdacef commit e67b5f8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/modules/ROOT/pages/servlet/authorization/method-security.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,15 @@ Java::
216216
----
217217
@PreAuthorize("hasAuthority('permission:read') || hasRole('ADMIN')")
218218
----
219-
======
220219
221-
.Kotlin
222-
[source,kotlin,role="kotlin"]
220+
Kotlin::
221+
+
222+
[source,kotlin,role="secondary"]
223223
----
224224
@PreAuthorize("hasAuthority('permission:read') || hasRole('ADMIN')")
225225
----
226+
======
227+
226228

227229
However, you could instead grant `permission:read` to those with `ROLE_ADMIN`.
228230
One way to do this is with a `RoleHierarchy` like so:

0 commit comments

Comments
 (0)