Rollen fix
All checks were successful
CI / Build (push) Successful in 1m20s
CI / Deploy (push) Successful in 54s

This commit is contained in:
Jan
2026-04-13 23:57:06 +02:00
parent dfdff6bf99
commit 44a2c3aeae
2 changed files with 4 additions and 22 deletions

View File

@@ -45,7 +45,6 @@ import {
approvalLabel,
canManageBudgets,
canManageUsers,
getDefaultApprovalPermissionsForRole,
roleLabel
} from "@/lib/domain";
@@ -1738,8 +1737,7 @@ export function DashboardShell({
const nextRole = event.target.value as UserFormState["role"];
setUserForm((current) => ({
...current,
role: nextRole,
approvalPermissions: sortApprovalPermissions(getDefaultApprovalPermissionsForRole(nextRole))
role: nextRole
}));
}}
required
@@ -1934,8 +1932,7 @@ export function DashboardShell({
onChange={(event) => {
const nextRole = event.target.value as ManagedUserDraft["role"];
updateManagedUserDraft(user, {
role: nextRole,
approvalPermissions: sortApprovalPermissions(getDefaultApprovalPermissionsForRole(nextRole))
role: nextRole
});
}}
fullWidth