From 0fc507d4c7e88f6daa6d9617f5ad2bc1a73c05ed Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 21 Oct 2025 15:05:18 +0200 Subject: [PATCH] remove user role from select options on user/show/{id} --- src/Service/UserOrganizationAppService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Service/UserOrganizationAppService.php b/src/Service/UserOrganizationAppService.php index 41cb088..e384165 100644 --- a/src/Service/UserOrganizationAppService.php +++ b/src/Service/UserOrganizationAppService.php @@ -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();