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');
|
throw $this->createNotFoundException('Default role not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($roleUser->getId(), $selectedRolesIds)) {
|
if (!empty($selectedRolesIds)) {
|
||||||
$this->userOrganizationAppService->syncRolesForUserOrganizationApp(
|
$this->userOrganizationAppService->syncRolesForUserOrganizationApp(
|
||||||
$uo,
|
$uo,
|
||||||
$application,
|
$application,
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{# TODO: pb avec le |raw retour à la ligne#}
|
{# 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>
|
<p><b> Description : </b>{{ uoa.application.descriptionSmall|default('Aucune description disponible.')|raw }}</p>
|
||||||
</div>
|
</div>
|
||||||
{% if is_granted('ROLE_ADMIN') %}
|
{% if is_granted('ROLE_ADMIN') %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue