Compare commits
6 Commits
db9845b27c
...
0fbbe42449
| Author | SHA1 | Date |
|---|---|---|
|
|
0fbbe42449 | |
|
|
132a734832 | |
|
|
e38cbb24d3 | |
|
|
171dd91a69 | |
|
|
bcc0e21fe0 | |
|
|
791a024635 |
|
|
@ -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: [],
|
||||
rls: user?.tenantId ? [{ clause: `tenant_id = ${user.tenantId}`, type: "BASE_ROLE" }] : [],
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { sql } from "drizzle-orm";
|
||||
import { pgTable, text, varchar, primaryKey, serial, integer, timestamp, numeric, jsonb, boolean, date } from "drizzle-orm/pg-core";
|
||||
import { pgTable, text, varchar, primaryKey, serial, integer, timestamp, numeric, jsonb, boolean, date, uuid } from "drizzle-orm/pg-core";
|
||||
import { createInsertSchema } from "drizzle-zod";
|
||||
import { z } from "zod";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue