diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/AuthResponse.java b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/AuthResponse.java index be22d53d..e947bfaf 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/AuthResponse.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/AuthResponse.java @@ -44,6 +44,7 @@ public void execute(ChannelHandlerContext ctx, Client clientData) throws Excepti server.authHookManager.preHook.hook(context, clientData); context.report = server.authManager.auth(context, password); server.authHookManager.postHook.hook(context, clientData); + result.permissions = context.report.session() != null ? (context.report.session().getUser() != null ? context.report.session().getUser().getPermissions() : null) : null; if (context.report.isUsingOAuth()) { result.oauth = new AuthRequestEvent.OAuthRequestEvent(context.report.oauthAccessToken(), context.report.oauthRefreshToken(), context.report.oauthExpire()); }