fixed issue #0000034 : Gestion de l'option edition.

This commit is contained in:
Michael RICOIS 2009-08-10 15:50:43 +00:00
parent bc0074b2fe
commit 5cfed990df

View File

@ -84,7 +84,7 @@ function formElementPerm($userInfos){
*/
function checkModeEdition($loginVu){
$isAuthorized = FALSE;
$authorizedUsers = array('ylenaour', 'jmartory', 'mheitz', 'mpurcarin', 'mcochet', 'aegasse', 'mricois');
$authorizedUsers = array('ylenaour', 'jmartory', 'mheitz', 'mpurcarin', 'mcochet', 'aegasse', 'mricois', 'adebbagh');
$isUserAuthorized = FALSE;
foreach($authorizedUsers as $login){
if($_SESSION['tabInfo']['login']==$login){
@ -92,7 +92,7 @@ function checkModeEdition($loginVu){
break;
}
}
if($loginVu==$_SESSION['tabInfo']['login'] && $isUserAuthorized){
if($loginVu==$_SESSION['tabInfo']['login'] && $isUserAuthorized || ($_SESSION['tabInfo']['idClient']==1 && $_SESSION['tabInfo']['profil']=='Administrateur') ){
$isAuthorized = TRUE;
}
return $isAuthorized;