Merge pull request #2125 from Dokploy/fix/issues

Fix/issues
This commit is contained in:
Mauricio Siu
2025-07-05 01:35:22 -06:00
committed by GitHub
5 changed files with 143 additions and 18 deletions

View File

@@ -459,6 +459,15 @@ export const settingsRouter = createTRPCRouter({
throw new TRPCError({ code: "UNAUTHORIZED" });
}
}
if (input.serverId) {
const server = await findServerById(input.serverId);
if (server.organizationId !== ctx.session?.activeOrganizationId) {
throw new TRPCError({ code: "UNAUTHORIZED" });
}
}
return readConfigInPath(input.path, input.serverId);
}),
getIp: protectedProcedure.query(async ({ ctx }) => {