feat(admin): Add global admin functionality: backend admin APIs, model fields and UI integration
This commit is contained in:
@@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user