Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2788

Support setting the RolesAllowed in the Panache REST Data extension

    XMLWordPrintable

Details

    Description

      With these changes, we can specify the roles using the annotations `@ResourceProperties` at resource level, and `@MethodProperties` for method level.
      Example:
      ```java
      @ResourceProperties(rolesAllowed = "user")
      public interface CollectionsResource extends PanacheRepositoryResource<CollectionsRepository, Collection, String>

      { @MethodProperties(rolesAllowed = "admin") boolean delete(String name); }

      ```

      Fix https://github.com/quarkusio/quarkus/issues/28507

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              probinso_jira Quarkus JIRA Bot
              Fedor Dudinskii Fedor Dudinskii
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: