mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
[rest] Fix UIResource GET endpoints do not require auth if implicit user role is disabled (#5226)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
This commit is contained in:
+3
@@ -112,6 +112,7 @@ public class UIResource implements RESTResource {
|
||||
}
|
||||
|
||||
@GET
|
||||
@RolesAllowed({ Role.USER, Role.ADMIN })
|
||||
@Path("/tiles")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Operation(operationId = "getUITiles", summary = "Get all registered UI tiles.", responses = {
|
||||
@@ -122,6 +123,7 @@ public class UIResource implements RESTResource {
|
||||
}
|
||||
|
||||
@GET
|
||||
@RolesAllowed({ Role.USER, Role.ADMIN })
|
||||
@Path("/components/{namespace}")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Operation(operationId = "getRegisteredUIComponentsInNamespace", summary = "Get all registered UI components in the specified namespace.", responses = {
|
||||
@@ -172,6 +174,7 @@ public class UIResource implements RESTResource {
|
||||
}
|
||||
|
||||
@GET
|
||||
@RolesAllowed({ Role.USER, Role.ADMIN })
|
||||
@Path("/components/{namespace}/{componentUID}")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Operation(operationId = "getUIComponentInNamespace", summary = "Get a specific UI component in the specified namespace.", responses = {
|
||||
|
||||
Reference in New Issue
Block a user