mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +00:00
Use Correct Meta-Annotation in Kotlin Sample
This commit is contained in:
parent
c1b3b329af
commit
da65830569
@ -955,7 +955,7 @@ Kotlin::
|
|||||||
@Target(ElementType.METHOD, ElementType.TYPE)
|
@Target(ElementType.METHOD, ElementType.TYPE)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@PreAuthorize("hasRole('{value}')")
|
@PreAuthorize("hasRole('{value}')")
|
||||||
annotation class IsAdmin(val value: String)
|
annotation class HasRole(val value: String)
|
||||||
----
|
----
|
||||||
======
|
======
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user