forked from ZwiiCMS-Team/ZwiiCMS
Edition impossible du profil de rang 1
This commit is contained in:
parent
e4717f0e6d
commit
724ade6971
@ -519,7 +519,7 @@ class user extends common
|
|||||||
'href' => helper::baseUrl() . 'user/profilEdit/' . $groupId . '/' . $profilId,
|
'href' => helper::baseUrl() . 'user/profilEdit/' . $groupId . '/' . $profilId,
|
||||||
'value' => template::ico('pencil'),
|
'value' => template::ico('pencil'),
|
||||||
'help' => 'Éditer',
|
'help' => 'Éditer',
|
||||||
'disabled' => $profilId === 1 ? true : $profilData['readonly'],
|
'disabled' => $profilData['readonly'],
|
||||||
]),
|
]),
|
||||||
template::button('profilDelete' . $groupId . $profilId, [
|
template::button('profilDelete' . $groupId . $profilId, [
|
||||||
'class' => 'userDelete buttonRed',
|
'class' => 'userDelete buttonRed',
|
||||||
|
@ -31,8 +31,9 @@
|
|||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php echo template::select('profilEditProfil', $module::$profils, [
|
<?php echo template::select('profilEditProfil', $module::$profils, [
|
||||||
'label' => 'Hiérarchie',
|
'label' => 'Hiérarchie',
|
||||||
'help' => 'Les profils d\'ordre supérieurs sont de rang plus élevés que les profils d\'ordre inférieur',
|
'help' => 'Rang 9 > rang 1. Le profil de rang 1 n\'est pas modifiable.',
|
||||||
'selected' => $this->getUrl(3)
|
'selected' => $this->getUrl(3),
|
||||||
|
'disabled' => $this->getUrl(3) === '1',
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user