Merge pull request #621 from Tria-plc/freight/feature/user_management_UI

fix issue
This commit is contained in:
yaschalew10
2026-07-11 10:26:46 +03:00
committed by GitHub

View File

@@ -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);