Use Correct Meta-Annotation in Kotlin Sample

This commit is contained in:
Taha Körkem 2024-07-25 18:24:27 +03:00 committed by Josh Cummings
parent c1b3b329af
commit da65830569
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
1 changed files with 1 additions and 1 deletions

View File

@ -955,7 +955,7 @@ Kotlin::
@Target(ElementType.METHOD, ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@PreAuthorize("hasRole('{value}')")
annotation class IsAdmin(val value: String)
annotation class HasRole(val value: String)
----
======