Modification appel moncompte

This commit is contained in:
Michael RICOIS 2010-04-27 13:45:21 +00:00
parent 8fc8228186
commit 1e3b24f7b9

View File

@ -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 {