diff --git a/bundles/org.opensmarthouse.core.io.rest.item/src/main/java/org/openhab/core/io/rest/core/internal/profile/ProfileTypeResource.java b/bundles/org.opensmarthouse.core.io.rest.item/src/main/java/org/openhab/core/io/rest/core/internal/profile/ProfileTypeResource.java index 51674b25d08..11c5cfc82c6 100644 --- a/bundles/org.opensmarthouse.core.io.rest.item/src/main/java/org/openhab/core/io/rest/core/internal/profile/ProfileTypeResource.java +++ b/bundles/org.opensmarthouse.core.io.rest.item/src/main/java/org/openhab/core/io/rest/core/internal/profile/ProfileTypeResource.java @@ -99,7 +99,7 @@ public ProfileTypeResource( // } @GET - @RolesAllowed({ Role.USER }) + @RolesAllowed({ Role.USER, Role.ADMIN }) @Produces(MediaType.APPLICATION_JSON) @Operation(summary = "Gets all available profile types.", responses = { @ApiResponse(responseCode = "200", description = "OK", content = @Content(array = @ArraySchema(schema = @Schema(implementation = ProfileTypeDTO.class), uniqueItems = true))) }) diff --git a/bundles/org.opensmarthouse.core.io.rest.sse/src/main/java/org/openhab/core/io/rest/sse/SseResource.java b/bundles/org.opensmarthouse.core.io.rest.sse/src/main/java/org/openhab/core/io/rest/sse/SseResource.java index 6ac0f243fae..557b07d0dfd 100644 --- a/bundles/org.opensmarthouse.core.io.rest.sse/src/main/java/org/openhab/core/io/rest/sse/SseResource.java +++ b/bundles/org.opensmarthouse.core.io.rest.sse/src/main/java/org/openhab/core/io/rest/sse/SseResource.java @@ -85,7 +85,7 @@ @JaxrsApplicationSelect("(" + JaxrsWhiteboardConstants.JAX_RS_NAME + "=" + RESTConstants.JAX_RS_NAME + ")") @JSONRequired @Path(SseResource.PATH_EVENTS) -@RolesAllowed({ Role.USER }) +@RolesAllowed({ Role.USER, Role.ADMIN }) @Tag(name = SseResource.PATH_EVENTS) @Singleton @NonNullByDefault diff --git a/bundles/org.opensmarthouse.core.io.rest.thing/src/main/java/org/openhab/core/io/rest/core/internal/thing/ThingTypeResource.java b/bundles/org.opensmarthouse.core.io.rest.thing/src/main/java/org/openhab/core/io/rest/core/internal/thing/ThingTypeResource.java index 05339bd6c17..d1bb9e6ef59 100644 --- a/bundles/org.opensmarthouse.core.io.rest.thing/src/main/java/org/openhab/core/io/rest/core/internal/thing/ThingTypeResource.java +++ b/bundles/org.opensmarthouse.core.io.rest.thing/src/main/java/org/openhab/core/io/rest/core/internal/thing/ThingTypeResource.java @@ -128,7 +128,7 @@ public ThingTypeResource( // } @GET - @RolesAllowed({ Role.USER }) + @RolesAllowed({ Role.USER, Role.ADMIN }) @Produces(MediaType.APPLICATION_JSON) @Operation(summary = "Gets all available thing types without config description, channels and properties.", responses = { @ApiResponse(responseCode = "200", description = "OK", content = @Content(array = @ArraySchema(schema = @Schema(implementation = StrippedThingTypeDTO.class), uniqueItems = true))) }) @@ -147,7 +147,7 @@ public Response getAll( } @GET - @RolesAllowed({ Role.USER }) + @RolesAllowed({ Role.USER, Role.ADMIN }) @Path("/{thingTypeUID}") @Produces(MediaType.APPLICATION_JSON) @Operation(summary = "Gets thing type by UID.", responses = {