feat(api): RBAC Phase 2 - row-level data scoping for groomer role #121

Closed
groombook-engineer[bot] wants to merge 17 commits from feature/gro-48-rbac-row-level into main
Showing only changes of commit 0fa53645b9 - Show all commits
+4
View File
@@ -105,6 +105,10 @@ vi.mock("@groombook/db", () => {
const { clientsRouter } = await import("../routes/clients.js");
const app = new Hono();
app.use("*", async (c, next) => {
c.set("staff", { id: "staff-uuid-1", role: "manager" } as never);
await next();
});
app.route("/clients", clientsRouter);
function jsonRequest(method: string, path: string, body?: unknown) {