remove user role from select options on user/show/{id}

This commit is contained in:
Charles 2025-10-21 15:05:18 +02:00
parent 8c7336b821
commit 0fc507d4c7
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ class UserOrganizationAppService
$grouped = [];
foreach ($userOrgApps as $uoa) {
if($uoa->getRole()->getName() === 'USER') {
continue; // Skip USER role
}
$app = $uoa->getApplication();
$appId = $app->getId();
$roleEntity = $uoa->getRole();