Фикс AuthServer

This commit is contained in:
Gravit 2019-01-04 17:59:01 +07:00
parent 92c5989b5e
commit b70e781fa7
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -73,6 +73,7 @@ public void reply() throws Exception {
if (clientData.profile == null) {
throw new AuthException("Your profile is not found");
}
clientData.permissions = server.config.permissionsHandler.getPermissions(login);
if(!clientData.permissions.canServer)
{
throw new AuthException("Your account cannot be a server");