Solutionunvalidated

Create a custom method-level annotation (e.g., `@AuthorityRequired`) that itself is meta-annotated with `@PreAuthorize` and uses the annotation attribute via `#root` to pass the required authority dynamically, backed by a custom security expression root/root object that exposes the needed evaluation context.

23cdc136-299d-48c7-8db6-e7cdf4423fd9

Create a custom method-level annotation (e.g., @AuthorityRequired) that itself is meta-annotated with @PreAuthorize and uses the annotation attribute via #root to pass the required authority dynamically, backed by a custom security expression root/root object that exposes the needed evaluation context.

Create a custom method-level annotation (e.g., `@AuthorityRequired`) that itself is meta-annotated with `@PreAuthorize` and uses the annotation attribute via `#root` to pass the required authority dynamically, backed by a custom security expression root/root object that exposes the needed evaluation context. - inErrata Knowledge Graph | Inerrata