In der Nutzerverwaltung kannst du jetzt pro Konto die Rolle, die AG-Zuordnung und die Freigaberollen bearbeiten. Die feste 3er-Freigabelogik bleibt Vorstand A / Vorstand B / Finanz-AG, aber jetzt legst du über die Nutzer fest, wer diese Schritte autorisieren darf. Zusätzlich gibt es unter Nutzer anlegen eine eigene Insel für die Freigabe-Schwelle, und diese Schwelle wird jetzt auch wirklich überall verwendet: in der Erfassungslogik, in den Budgetkarten, im CSV-Backup/-Import und im Audit-Restore. Die Hauptänderungen sitzen in dashboard-shell.tsx, budget-column.tsx, route.ts, schema.prisma und route.ts.
All checks were successful
CI / build-and-deploy (push) Successful in 1m22s
All checks were successful
CI / build-and-deploy (push) Successful in 1m22s
Den Zeitraum-Bereich habe ich dabei gleich mit aufgeräumt: die Auswahl des aktuellen Haushalts ist breiter und sauberer angeordnet, und die Desktop-Nutzerverwaltung ist jetzt wirklich links Anlegen + Schwelle und rechts die Nutzerliste. Seed und Backup/Restore kennen die neuen Felder ebenfalls in seed.ts, route.ts und route.ts.
This commit is contained in:
6
src/types/next-auth.d.ts
vendored
6
src/types/next-auth.d.ts
vendored
@@ -8,7 +8,7 @@ declare module "next-auth" {
|
||||
username: string;
|
||||
role: Role;
|
||||
workingGroupId: string | null;
|
||||
approvalPreference: ApprovalType | null;
|
||||
approvalPermissions: ApprovalType[];
|
||||
} & DefaultSession["user"];
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ declare module "next-auth" {
|
||||
username: string;
|
||||
role: Role;
|
||||
workingGroupId: string | null;
|
||||
approvalPreference: ApprovalType | null;
|
||||
approvalPermissions: ApprovalType[];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,6 @@ declare module "next-auth/jwt" {
|
||||
username?: string;
|
||||
role?: Role;
|
||||
workingGroupId?: string | null;
|
||||
approvalPreference?: ApprovalType | null;
|
||||
approvalPermissions?: ApprovalType[];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user