Benutzeranlage direkt aus Mitarbeiterprofil ermöglichen
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user