issue #0001249 : intégration du droit liassexls

This commit is contained in:
Michael RICOIS 2012-07-26 11:51:34 +00:00
parent aaf39aaec8
commit 0986b9684b

View File

@ -913,8 +913,8 @@ class FinanceController extends Zend_Controller_Action
$this->view->assign('ancres', $ancres[$dateAndType[1]]);
//Gestion export de la liasse au format XLS
if (in_array($user->getIdClient(), array(1,86))
&& in_array($dateAndType[1],array('C', 'N', 'S')) ) {
if ($user->checkPerm('liassexls')
&& in_array($dateAndType[1],array('C', 'N', 'S')) ) {
$this->view->assign('exportxls', true);
}
}