[FIX] Удаление требования canServer

This commit is contained in:
Gravit 2020-01-19 12:26:17 +07:00
parent dcd2888f91
commit 29fffae33b
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -105,10 +105,6 @@ public void execute(ChannelHandlerContext ctx, Client clientData) throws Excepti
clientData.username = login; clientData.username = login;
result.accessToken = aresult.accessToken; result.accessToken = aresult.accessToken;
result.permissions = clientData.permissions; result.permissions = clientData.permissions;
if (authType == ConnectTypes.SERVER && !clientData.permissions.canServer) {
AuthProvider.authError("authType: SERVER not allowed for this account");
return;
}
if (getSession) { if (getSession) {
if (clientData.session == 0) { if (clientData.session == 0) {
clientData.session = random.nextLong(); clientData.session = random.nextLong();