florianschmitt/connection-backend

View on GitHub
src/main/kotlin/de/florianschmitt/system/util/authorizationannotations.kt

Summary

Maintainability
A
55 mins
Test Coverage
package de.florianschmitt.system.util

import org.springframework.security.access.prepost.PreAuthorize

@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@PreAuthorize("hasRole('ROLE_REQUESTER')")
annotation class HasRequesterRole