瀏覽代碼

Fix incorrect rendering of SpEL expression example tabs

Meehdi 8 月之前
父節點
當前提交
e67b5f8356
共有 1 個文件被更改,包括 5 次插入3 次删除
  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: