Edition impossible du profil de rang 1

This commit is contained in:
Fred Tempez 2023-08-08 17:44:44 +02:00
parent e4717f0e6d
commit 724ade6971
2 changed files with 4 additions and 3 deletions

View File

@ -519,7 +519,7 @@ class user extends common
'href' => helper::baseUrl() . 'user/profilEdit/' . $groupId . '/' . $profilId,
'value' => template::ico('pencil'),
'help' => 'Éditer',
'disabled' => $profilId === 1 ? true : $profilData['readonly'],
'disabled' => $profilData['readonly'],
]),
template::button('profilDelete' . $groupId . $profilId, [
'class' => 'userDelete buttonRed',

View File

@ -31,8 +31,9 @@
<div class="col6">
<?php echo template::select('profilEditProfil', $module::$profils, [
'label' => 'Hiérarchie',
'help' => 'Les profils d\'ordre supérieurs sont de rang plus élevés que les profils d\'ordre inférieur',
'selected' => $this->getUrl(3)
'help' => 'Rang 9 > rang 1. Le profil de rang 1 n\'est pas modifiable.',
'selected' => $this->getUrl(3),
'disabled' => $this->getUrl(3) === '1',
]); ?>
</div>
</div>