diff --git a/application/controllers/EvaluationController.php b/application/controllers/EvaluationController.php index e8a6c3a85..2be292b39 100644 --- a/application/controllers/EvaluationController.php +++ b/application/controllers/EvaluationController.php @@ -70,7 +70,7 @@ class EvaluationController extends Zend_Controller_Action { $user = new Utilisateur(); - if(!$user->checkPerm('INDISCORE')) + if(!$user->checkPerm('INDISCORE') && !$user->checkPerm('INDISCOREP')) $this->_forward('perms', 'error'); $request = $this->getRequest(); @@ -108,7 +108,7 @@ class EvaluationController extends Zend_Controller_Action $user = new Utilisateur(); - if(!$user->checkPerm('INDISCORE2')) + if(!$user->checkPerm('INDISCORE2') && !$user->checkPerm('INDISCORE2P')) $this->_forward('perms', 'error'); $siren = substr($this->siret,0,9); @@ -266,7 +266,7 @@ class EvaluationController extends Zend_Controller_Action $this->view->headScript()->appendFile('/themes/default/scripts/evaluation.js', 'text/javascript'); $user = new Utilisateur(); - if(!$user->checkPerm('INDISCORE3')) + if(!$user->checkPerm('INDISCORE3') && !$user->checkPerm('INDISCORE3P')) $this->_forward('perms', 'error'); // Lien pour le rapport personnalisé