Add workspace groups with space grants

Workspace admins create groups of members, and space admins grant a role
to a whole group. A member's space role is now the highest of their own
grant and their groups' grants. Leaving a workspace drops its group
memberships, and deleting a group removes its space grants (they are not
a real relation, so PocketBase cannot cascade them).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tajniak81andClaude Opus 5.5 committed 2026-10-31 16:39:21 +01:00
1 parent 342d073460
commit 34660c6b46
21 files changed
+1667 -7

No files matched your search

+2
View File
@@ -5,6 +5,8 @@ import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";
// DOCWELL_DEV_API points the dev proxy at another docwell-server.
// The config runs in Node, but this tsconfig has no Node types.
declare const process: { env: Record<string, string | undefined> };
const api = process.env.DOCWELL_DEV_API ?? "http://localhost:8080";
export default defineConfig({