Skip to content
Snippets Groups Projects
Commit e3c8caa1 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Removed unused and buggy check for WebSocket access

parent 053e76b0
Branches
Tags
1 merge request!147Fix multiple bugs and code smells
Pipeline #29813 passed with warnings with stages
in 1 minute and 24 seconds
......@@ -339,8 +339,4 @@ public class ApplicationPermissionEvaluator implements PermissionEvaluator {
return auth instanceof RunAsUserToken
&& auth.getAuthorities().stream().anyMatch(ga -> ga.getAuthority().equals("ROLE_RUN_AS_SYSTEM"));
}
private boolean isWebsocketAccess(final Authentication auth) {
return auth instanceof AnonymousAuthenticationToken && auth.getAuthorities().contains("ROLE_WEBSOCKET_ACCESS");
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment