Vue gestion en mode developement
This commit is contained in:
parent
eb58f69819
commit
58b1e456f7
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user