remove user role from select options on user/show/{id}
This commit is contained in:
parent
8c7336b821
commit
0fc507d4c7
|
|
@ -30,6 +30,9 @@ class UserOrganizationAppService
|
||||||
$grouped = [];
|
$grouped = [];
|
||||||
|
|
||||||
foreach ($userOrgApps as $uoa) {
|
foreach ($userOrgApps as $uoa) {
|
||||||
|
if($uoa->getRole()->getName() === 'USER') {
|
||||||
|
continue; // Skip USER role
|
||||||
|
}
|
||||||
$app = $uoa->getApplication();
|
$app = $uoa->getApplication();
|
||||||
$appId = $app->getId();
|
$appId = $app->getId();
|
||||||
$roleEntity = $uoa->getRole();
|
$roleEntity = $uoa->getRole();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue