Annotation Interface IsAuthorizedAdmin
@Target(METHOD)
@Retention(RUNTIME)
@PreAuthorize("hasRole(\'ROLE_ADMINGROUP\')")
public @interface IsAuthorizedAdmin
Annotation for securing rest endpoints.
Only users that have role admin can access this endpoint.
Only users that have role admin can access this endpoint.