From 3c5e25b67f63b7985c0f3f4ff5babdd31ca9c93f Mon Sep 17 00:00:00 2001 From: Gravita Date: Mon, 5 Dec 2022 23:17:12 +0700 Subject: [PATCH] [FIX] Launcher permissions --- .../gravit/launchserver/socket/response/auth/AuthResponse.java | 1 + 1 file changed, 1 insertion(+) 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()); }