edit users

This commit is contained in:
2025-07-21 09:37:53 +02:00
parent 6e0880eb3d
commit 50e066f794
46 changed files with 1284 additions and 232 deletions

View File

@@ -0,0 +1,11 @@
import type { AuthUser } from './auth';
import type { UserWarren, Warren } from './warrens';
export type AdminResources = {
users: AuthUserWithWarrens[];
warrens: Record<string, Warren>;
};
export type AuthUserWithWarrens = AuthUser & {
warrens: UserWarren[];
};

View File

@@ -2,3 +2,14 @@ export type Warren = {
id: string;
name: string;
};
export type UserWarren = {
userId: string;
warrenId: string;
canCreateChildren: boolean;
canListFiles: boolean;
canReadFiles: boolean;
canModifyFiles: boolean;
canDeleteFiles: boolean;
canDeleteWarren: boolean;
};