correction bug remove all roles
This commit is contained in:
parent
6aacf0cefc
commit
5f50584f0d
|
|
@ -359,7 +359,7 @@ class UserController extends AbstractController
|
|||
throw $this->createNotFoundException('Default role not found');
|
||||
}
|
||||
|
||||
if (in_array($roleUser->getId(), $selectedRolesIds)) {
|
||||
if (!empty($selectedRolesIds)) {
|
||||
$this->userOrganizationAppService->syncRolesForUserOrganizationApp(
|
||||
$uo,
|
||||
$application,
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<div class="card-body">
|
||||
<div class="row">
|
||||
{# TODO: pb avec le |raw retour à la ligne#}
|
||||
{# maybe remove Description label #}
|
||||
<p><b> Description : </b>{{ uoa.application.descriptionSmall|default('Aucune description disponible.')|raw }}</p>
|
||||
</div>
|
||||
{% if is_granted('ROLE_ADMIN') %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue