Compare commits

..

1 Commits

Author SHA1 Message Date
engenharia-creator db9845b27c
Merge e506023d53 into e38cbb24d3 2026-03-18 09:16:25 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export function registerSupersetRoutes(app: Express): void {
last_name: user?.name?.split(" ").slice(1).join(" ") || "User",
},
resources: [{ type: "dashboard", id: dashboardId }],
rls: user?.tenantId ? [{ clause: `tenant_id = ${user.tenantId}`, type: "BASE_ROLE" }] : [],
rls: [],
}),
});

View File

@ -1,5 +1,5 @@
import { sql } from "drizzle-orm";
import { pgTable, text, varchar, primaryKey, serial, integer, timestamp, numeric, jsonb, boolean, date, uuid } from "drizzle-orm/pg-core";
import { pgTable, text, varchar, primaryKey, serial, integer, timestamp, numeric, jsonb, boolean, date } from "drizzle-orm/pg-core";
import { createInsertSchema } from "drizzle-zod";
import { z } from "zod";