Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Removed role requirement from send notification (security checks are in code logic)

Rich Turner75cacb3b6563
diff --git a/model/src/main/java/org/openremote/model/notification/NotificationResource.java b/model/src/main/java/org/openremote/model/notification/NotificationResource.java
index 9e57e81d5..85959ef95 100644
--- a/model/src/main/java/org/openremote/model/notification/NotificationResource.java
+++ b/model/src/main/java/org/openremote/model/notification/NotificationResource.java
@@ -97,7 +97,6 @@ public interface NotificationResource {
@Path("alert")
@SuccessStatusCode(204)
@Consumes(APPLICATION_JSON)
- @RolesAllowed({"write:user"})
@SuppressWarnings("unusable-by-js")
void sendNotification(@BeanParam RequestParams requestParams,
Notification notification);