diff --git a/keyserver/src/socket/socket.js b/keyserver/src/socket/socket.js --- a/keyserver/src/socket/socket.js +++ b/keyserver/src/socket/socket.js @@ -6,6 +6,7 @@ import t from 'tcomb'; import WebSocket from 'ws'; +import { baseLegalPolicies } from 'lib/facts/policies.js'; import { mostRecentMessageTimestamp } from 'lib/shared/message-utils'; import { serverRequestSocketTimeout, @@ -226,6 +227,8 @@ clientSocketMessageInputValidator, clientSocketMessage, ); + await policiesValidator(viewer, baseLegalPolicies); + const serverResponses = await this.handleClientSocketMessage( clientSocketMessage, );