Compare commits
1 Commits
0fbbe42449
...
db9845b27c
| Author | SHA1 | Date |
|---|---|---|
|
|
db9845b27c |
|
|
@ -52,7 +52,7 @@ export function registerSupersetRoutes(app: Express): void {
|
||||||
last_name: user?.name?.split(" ").slice(1).join(" ") || "User",
|
last_name: user?.name?.split(" ").slice(1).join(" ") || "User",
|
||||||
},
|
},
|
||||||
resources: [{ type: "dashboard", id: dashboardId }],
|
resources: [{ type: "dashboard", id: dashboardId }],
|
||||||
rls: user?.tenantId ? [{ clause: `tenant_id = ${user.tenantId}`, type: "BASE_ROLE" }] : [],
|
rls: [],
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { sql } from "drizzle-orm";
|
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 { createInsertSchema } from "drizzle-zod";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue