From 5631bc6af1b4282aa83057d702eef91ab24860ac Mon Sep 17 00:00:00 2001 From: Gravita Date: Mon, 21 Nov 2022 13:32:10 +0700 Subject: [PATCH] [FIX] permissionsPermissionColumn --- .../gravit/launchserver/auth/core/AbstractSQLCoreProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java index cd717494..bf6bff84 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java @@ -182,7 +182,7 @@ public void init(LaunchServer server) { "UNION ALL\n" + "SELECT p."+permissionsPermissionColumn+" FROM "+permissionsTable+" p\n" + "INNER JOIN "+rolesTable+" r ON p."+permissionsUUIDColumn+" = r."+rolesUUIDColumn+"\n" + - "INNER JOIN req ON r."+rolesUUIDColumn+"=substring(req.permission from 6) or r.name=substring(req.permission from 6)\n" + + "INNER JOIN req ON r."+rolesUUIDColumn+"=substring(req."+permissionsPermissionColumn+" from 6) or r.name=substring(req."+permissionsPermissionColumn+" from 6)\n" + ") SELECT * FROM req"; queryRolesByUserUUID = customQueryRolesByUserUUID != null ? customQueryRolesByUserUUID : String.format("SELECT r.%s FROM %s r\n" +