Skip to content
Snippets Groups Projects
Commit 22cdb614 authored by Laurent's avatar Laurent
Browse files

hotline #30552 user pseudo update fix

refactoring
parent 7c4eae39
Branches
Tags
3 merge requests!1192Master,!1191Hotline master,!1189Hotline#30552 le pseudo d un utilisateur abonne sigb ne resiste pas a la mise a jour
......@@ -52,13 +52,17 @@
<td class="droite"><?php echo $this->traduire('Rôle'); ?>&nbsp;</td>
<td class="gauche">
<?php $comboListeRole = new ZendAfi_Acl_AdminControllerRoles();
if ($this->user->getId() == '1')
echo '<select disabled="disabled"><option selected="selected" value="7">super_admin</option></select><input type="hidden" value="7" name="role" id="role"/>';
if ($this->user->isSuperAdmin())
echo '<select disabled="disabled"><option selected="selected" value="7">super_admin</option></select><input type="hidden" value="' . ZendAfi_Acl_AdminControllerRoles::SUPER_ADMIN . '" name="role" id="role"/>';
else
print $this->user->getRoleLevel() != 2 ? $comboListeRole->rendCombo($this->user->getRole(),$this->authUser->ROLE_LEVEL) : ZendAfi_Acl_AdminControllerRoles::getLibelleRole(2);
if ($this->user->getRoleLevel() == 2)
echo $this->user->isAbonne()
? ZendAfi_Acl_AdminControllerRoles::getLibelleRole($this->user->getRoleLevel())
: $comboListeRole->rendCombo($this->user->getRole(), $this->authUser->ROLE_LEVEL);
if ($this->user->isAbonne())
echo $this->tag('input','',['type' =>'hidden',
'value' => 2,
'value' => ZendAfi_Acl_AdminControllerRoles::ABONNE_SIGB,
'name' => 'role',
'id' => 'role']);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment