Browse Source

ws fix

master
gsd 2 weeks ago
parent
commit
a972b60cc5
  1. 5
      src/main/java/app/annotations/impl/WebAccessAspect.java

5
src/main/java/app/annotations/impl/WebAccessAspect.java

@ -48,6 +48,11 @@ public class WebAccessAspect {
} }
} }
@Before("@annotation(app.annotations.interfaces.CheckWebAccess) && args(session)")
public void beforeWS(JoinPoint joinPoint, WebSocketSession session) throws IOException {
before(joinPoint, session);
}
@Before("@annotation(app.annotations.interfaces.CheckWebAccess) && args(session,..)") @Before("@annotation(app.annotations.interfaces.CheckWebAccess) && args(session,..)")
public void before(JoinPoint joinPoint, WebSocketSession session) throws IOException { public void before(JoinPoint joinPoint, WebSocketSession session) throws IOException {
AuthMethod auth_method = ((MethodSignature) joinPoint.getSignature()).getMethod().getAnnotation(CheckWebAccess.class).auth_method(); AuthMethod auth_method = ((MethodSignature) joinPoint.getSignature()).getMethod().getAnnotation(CheckWebAccess.class).auth_method();

Loading…
Cancel
Save