feat: distinguish managed platform users (#14207)

* feat: add isPlatformManaged property to user

* do not allow deleting non managed users

* refactor: rename managed user create and update inputs

* refactor response code

* feat: add isPlatformManaged when creating managed user

* fix TS
This commit is contained in:
Lauris Skraucis authored and GitHub committed 2024-03-25 18:48:51 +01:00
1 parent bec1453148
commit ef498c6ed6
12 files changed
+52 -27

No files matched your search

+1
View File
@@ -249,6 +249,7 @@ export const buildUser = <T extends Partial<UserPayload>>(
receiveMonthlyDigestEmail: null,
movedToProfileId: null,
priority: user?.priority ?? null,
isPlatformManaged: false,
...user,
};
};