Update to match new role logic
This commit is contained in:
parent
4ac179f7b6
commit
f89bd101fe
|
|
@ -51,7 +51,7 @@ class DeleteRoleCommand extends Command
|
|||
}
|
||||
|
||||
// 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]);
|
||||
|
||||
if ($usageCount > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue