Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -1,5 +1,5 @@
import { db } from "../../db.server";
import { Permission, Role, RolePermission, UserRole } from "@toolctrl/db/prisma-browser";
import { Permission, Role, RolePermission, UserRole } from "@hivegrid/db/prisma-browser";
import { FiltersDto } from "~/application/dtos/data/FiltersDto";
import RowFiltersHelper from "~/utils/helpers/RowFiltersHelper";
import { UserSimple } from "../users.db.server";
@@ -199,6 +199,19 @@ export async function getTenantAssignableAppRole(id: string, tenantId: string):
});
}
// R-P2b (D01 inline role dropdown): all app roles a tenant may assign — the
// shared assignable defaults plus the tenant's own custom/SHK roles. Mirrors
// the per-role check in getTenantAssignableAppRole above.
export async function getTenantAssignableAppRoles(tenantId: string): Promise<Role[]> {
return await db.role.findMany({
where: {
type: "app",
OR: [{ isDefault: true, tenantId: null }, { tenantId }],
},
orderBy: [{ type: "asc" }, { order: "asc" }],
});
}
export async function getTenantMutableAppRole(id: string, tenantId: string): Promise<RoleWithPermissions | null> {
return await db.role.findFirst({
where: {