feat(admin): Add global admin functionality: backend admin APIs, model fields and UI integration

This commit is contained in:
2025-12-01 09:44:37 +00:00
parent fd089b2cee
commit af0c24f7ca
15 changed files with 1163 additions and 5 deletions
+5
View File
@@ -46,6 +46,11 @@ export const getOrganizationsAction = accountState.createAction<void>(
const response = await idpState.idpClient.getRolesAndOrganizations();
currentState.organizations = response.organizations;
currentState.roles = response.roles;
// Also fetch user data for admin checks
const whoIsResponse = await idpState.idpClient.whoIs().catch(() => null);
if (whoIsResponse?.user) {
currentState.user = whoIsResponse.user;
}
return currentState;
}
);