Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting the RolesAllowed in the Panache REST Data extension #28594

Merged
merged 1 commit into from Oct 15, 2022

Conversation

Sgitario
Copy link
Contributor

With these changes, we can specify the roles using the annotations @ResourceProperties at resource level, and @MethodProperties for method level.
Example:

@ResourceProperties(rolesAllowed = "user")
public interface CollectionsResource extends PanacheRepositoryResource<CollectionsRepository, Collection, String> {
    @MethodProperties(rolesAllowed = "admin")
    boolean delete(String name);
}

Fix #28507

@Sgitario
Copy link
Contributor Author

cc @gmuellerinform

Quarkus Documentation automation moved this from To do to Reviewer approved Oct 14, 2022
With these changes, we can specify the roles using the annotations `@ResourceProperties` at resource level, and `@MethodProperties` for method level.
Fix quarkusio#28507
@quarkus-bot quarkus-bot bot added the area/spring Issues relating to the Spring integration label Oct 14, 2022
@gsmet gsmet merged commit 378f4b5 into quarkusio:main Oct 15, 2022
Quarkus Documentation automation moved this from Reviewer approved to Done Oct 15, 2022
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Oct 15, 2022
@quarkus-bot quarkus-bot bot added the kind/enhancement New feature or request label Oct 15, 2022
@Sgitario Sgitario deleted the panache_allowed_roles branch October 17, 2022 05:08
@gsmet gsmet modified the milestones: 2.14.0.CR1, 2.13.6.Final Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation area/panache area/spring Issues relating to the Spring integration kind/enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

Allow AllowedRoles in PanacheEntityResource
3 participants