Vue gestion en mode developement

This commit is contained in:
Michael RICOIS 2012-03-14 09:52:29 +00:00
parent eb58f69819
commit 58b1e456f7

View File

@ -80,12 +80,15 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
}
}
if ( $auth && $auth->getIdentity()->profil=='SuperAdministrateur' ){
if ( APPLICATION_ENV=='development' && $auth && $auth->getIdentity()->idClient==1 ) {
$layout = Zend_Layout::getMVCInstance();
$view = $layout->getView();
$view->admin = true;
} elseif ( $auth && $auth->getIdentity()->profil=='SuperAdministrateur' ){
$layout = Zend_Layout::getMVCInstance();
$view = $layout->getView();
$view->admin = true;
}
}
}
}
}