mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
Merge pull request #621 from Tria-plc/freight/feature/user_management_UI
fix issue
This commit is contained in:
@@ -639,7 +639,7 @@ const UserManagementPage = () => {
|
||||
// Org/unit admins are scoped to the orgs they administer via my-admin-organizations.
|
||||
const endpoint = isSuperAdmin
|
||||
? "/organizations"
|
||||
: "/organizations/my-admin-organizations";
|
||||
: "/organizations/with-admin-flag";
|
||||
const response = await api.get<ListResponse<OrganizationRecord>>(endpoint);
|
||||
const nextOrganizations = getItems(response.data);
|
||||
setOrganizations(nextOrganizations);
|
||||
|
||||
Reference in New Issue
Block a user