Benutzeranlage direkt aus Mitarbeiterprofil ermöglichen

This commit is contained in:
2026-04-29 16:23:35 +02:00
parent d5aed2140e
commit 2d26cedaa3
3 changed files with 241 additions and 8 deletions

View File

@@ -69,6 +69,13 @@ export const useAdmin = () => {
})
}
const createUserForProfile = async (profileId: string, body: Record<string, any>) => {
return await $api(`/api/admin/profiles/${profileId}/create-user`, {
method: "POST",
body,
})
}
const updateUser = async (id: string, body: Record<string, any>) => {
return await $api(`/api/admin/users/${id}`, {
method: "PUT",
@@ -106,6 +113,7 @@ export const useAdmin = () => {
return {
getOverview,
createUser,
createUserForProfile,
updateUser,
updateUserAccess,
createTenant,