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 5fdacef commit e67b5f8Copy full SHA for e67b5f8
docs/modules/ROOT/pages/servlet/authorization/method-security.adoc
@@ -216,13 +216,15 @@ Java::
216
----
217
@PreAuthorize("hasAuthority('permission:read') || hasRole('ADMIN')")
218
219
-======
220
221
-.Kotlin
222
-[source,kotlin,role="kotlin"]
+Kotlin::
++
+[source,kotlin,role="secondary"]
223
224
225
226
+======
227
+
228
229
However, you could instead grant `permission:read` to those with `ROLE_ADMIN`.
230
One way to do this is with a `RoleHierarchy` like so:
0 commit comments