Ver Fonte

change rights

tripeur há 4 anos atrás
pai
commit
c20d06e14c

+ 1 - 1
src/main/java/fr/jaquin/bdlg/planner/security/WebSecurityConfig.java

@@ -58,7 +58,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
           .antMatchers(HttpMethod.GET,"/planner/**").hasAuthority("USER")
           .antMatchers(HttpMethod.GET,"/roles/current").hasAuthority("USER") 
           .antMatchers(HttpMethod.GET,"/username").hasAuthority("USER") 
-          .antMatchers("/ws").hasAuthority("USER")  
+          .antMatchers("/ws/**").hasAuthority("USER")  
           .antMatchers("/users").hasAuthority("ADMIN")
           .antMatchers("/users/**").hasAuthority("ADMIN")
           .antMatchers("/admin/**").hasAuthority("ADMIN")

+ 1 - 0
src/main/java/fr/jaquin/bdlg/planner/websockets/WebsocketController.java

@@ -6,6 +6,7 @@ import org.springframework.messaging.handler.annotation.Payload;
 import org.springframework.messaging.handler.annotation.SendTo;
 import org.springframework.messaging.simp.SimpMessagingTemplate;
 import org.springframework.stereotype.Controller;
+import fr.jaquin.bdlg.planner.websockets.messages.NotificationMessage;
 import fr.jaquin.bdlg.planner.websockets.messages.PlanningUpdateMessage;
 import fr.jaquin.bdlg.planner.websockets.messages.StompResponseMessage;
 

+ 1 - 1
src/main/java/fr/jaquin/bdlg/planner/websockets/NotificationMessage.java → src/main/java/fr/jaquin/bdlg/planner/websockets/messages/NotificationMessage.java

@@ -1,4 +1,4 @@
-package fr.jaquin.bdlg.planner.websockets;
+package fr.jaquin.bdlg.planner.websockets.messages;
 
 public class NotificationMessage {
   private String text;