diff --git a/www/index.php b/www/index.php index 5a7cc2810..b44323aa0 100644 --- a/www/index.php +++ b/www/index.php @@ -74,8 +74,6 @@ case 'recherche': require_once realpath(dirname(__FILE__)).'/pages/main.php'; break; case 'moncompte': - - if (isset($_REQUEST['frmOptions'])) { $tabOptions = $_REQUEST['frmOptions']; } @@ -95,8 +93,8 @@ case 'moncompte': $_SESSION['tabInfo']['formatMail'] = $tabOptions['formatMail']; } $title = 'Profil utilisateur'; - if ($_SESSION['tabInfo']['profil']=='Administrateur' && - $_SESSION['tabInfo']['profil']=='SuperAdministrateur' && + if ( ($_SESSION['tabInfo']['profil']=='Administrateur' || + $_SESSION['tabInfo']['profil']=='SuperAdministrateur' ) && hasPerm('monprofil')) { $page2 = 'moncompte.php'; } else {