Bladeren bron

Fix incorrect rendering of SpEL expression example tabs

Meehdi 8 maanden geleden
bovenliggende
commit
e67b5f8356
1 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  1. 5 3
      docs/modules/ROOT/pages/servlet/authorization/method-security.adoc

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

@@ -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: