retirer la possibilité de décocher la case mon profil lorsque administrateur, issue #0001156

This commit is contained in:
Michael RICOIS 2012-04-16 14:50:24 +00:00
parent 71d19f1948
commit 376b352d4a

View File

@ -165,7 +165,7 @@ foreach ($this->droitsClients as $droit) {
$check = ' checked'; $check = ' checked';
} }
$disable = ''; $disable = '';
if (!$this->isAdmin) { if ( !$this->isAdmin || ($this->isAdmin && strtolower($droit)=='monprofil') ) {
$disable = ' disabled'; $disable = ' disabled';
} }
?> ?>