Allow any admin role on GET profile call (#15967)

This commit is contained in:
Stan Silvert 2022-12-13 15:56:22 -05:00 committed by GitHub
parent 1ed81fa377
commit 5ced20e1ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ public class UserProfileResource {
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public String getConfiguration() { public String getConfiguration() {
auth.realm().requireViewRealm(); auth.requireAnyAdminRole();
return session.getProvider(UserProfileProvider.class).getConfiguration(); return session.getProvider(UserProfileProvider.class).getConfiguration();
} }