From 6459dcbc5e41cf4142c08447c7b63b232b15da85 Mon Sep 17 00:00:00 2001 From: Carles Arnal Date: Mon, 2 Dec 2024 13:22:19 +0100 Subject: [PATCH] Fix current user authorization level (#5636) --- .../java/io/apicurio/registry/rest/v2/UsersResourceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/apicurio/registry/rest/v2/UsersResourceImpl.java b/app/src/main/java/io/apicurio/registry/rest/v2/UsersResourceImpl.java index 830342693a..6cbe6403c2 100644 --- a/app/src/main/java/io/apicurio/registry/rest/v2/UsersResourceImpl.java +++ b/app/src/main/java/io/apicurio/registry/rest/v2/UsersResourceImpl.java @@ -61,7 +61,7 @@ public class UsersResourceImpl implements UsersResource { * @see io.apicurio.registry.rest.v2.UsersResource#getCurrentUserInfo() */ @Override - @Authorized(style=AuthorizedStyle.None, level=AuthorizedLevel.None) + @Authorized(style=AuthorizedStyle.None, level=AuthorizedLevel.Read) public UserInfo getCurrentUserInfo() { UserInfo info = new UserInfo(); info.setUsername(securityIdentity.getPrincipal().getName());