Correction sur les droits

This commit is contained in:
Michael RICOIS 2012-02-23 15:55:31 +00:00
parent 197074fd14
commit d1e54f4a99

View File

@ -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é