Correction appel vérification permission

This commit is contained in:
Michael RICOIS 2011-05-23 15:05:49 +00:00
parent 515348ac47
commit 95d9ad60a1

View File

@ -718,17 +718,17 @@ class Entreprise extends WsScore
$perm = false;
switch($niveau){
case 1:
if ( !$this->checkPerm('indiscore') || !checkPerm('indiscorep') ){
if ( !$this->checkPerm('indiscore') || !$this->checkPerm('indiscorep') ){
$this->permission('indiscore');
}
break;
case 2:
if (!$this->checkPerm('indiscore2') || !checkPerm('indiscore2p') ){
if (!$this->checkPerm('indiscore2') || !$this->checkPerm('indiscore2p') ){
$this->permission('indiscore2');
}
break;
case 3:
if (!$this->checkPerm('indiscore3') || !checkPerm('indiscore3p') ){
if (!$this->checkPerm('indiscore3') || !$this->checkPerm('indiscore3p') ){
$this->permission('indiscore3');
}
break;