Update to match new role logic

This commit is contained in:
Charles 2026-02-23 11:55:08 +01:00
parent 4ac179f7b6
commit f89bd101fe
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class DeleteRoleCommand extends Command
} }
// Check if role is being used (optional safety check) // Check if role is being used (optional safety check)
$usageCount = $this->entityManager->getRepository(\App\Entity\UserOrganizationApp::class) $usageCount = $this->entityManager->getRepository(\App\Entity\UsersOrganizations::class)
->count(['role' => $role]); ->count(['role' => $role]);
if ($usageCount > 0) { if ($usageCount > 0) {