This commit is contained in:
Michael RICOIS 2012-12-18 14:42:05 +00:00
parent 74131f0c15
commit 8726ae5f16
3 changed files with 214 additions and 214 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1113,10 +1113,10 @@ class Entreprise extends WsScore
if ( !in_array($niveau, array(0,1,2,3,4,5)) ) { $niveau = 2; }
$perm = false;
//@todo : Gestion des droits
/*switch($niveau){
case 1: $perms = array('indiscore', 'indiscorep'); break;
case 2: $perms = array('indiscore2', 'indiscore2p'); break;
case 3: $perms = array('indiscore3', 'indiscore3p'); break;
switch($niveau){
case 1: $perms = array('indiscore', 'indiscorep', 'rapport1'); break;
case 2: $perms = array('indiscore2', 'indiscore2p', 'rapport2'); break;
case 3: $perms = array('indiscore3', 'indiscore3p', 'rapport3'); break;
}
foreach($perms as $item){
if ( $this->checkPerm($item) ){
@ -1126,7 +1126,7 @@ class Entreprise extends WsScore
}
if ($perm === false) {
$this->sendError('0902');
}*/
}
$tabRet = array();
debugLog('I',"IndiScore demandée pour $siren en niveau $niveau",__LINE__,__FILE__, __FUNCTION__, __CLASS__);

View File

@ -1549,9 +1549,9 @@ class Entreprise extends WsScore
$perm = false;
//@todo : Gestion des droits
switch($niveau){
case 1: $perms = array('indiscore', 'indiscorep'); break;
case 2: $perms = array('indiscore2', 'indiscore2p'); break;
case 3: $perms = array('indiscore3', 'indiscore3p'); break;
case 1: $perms = array('indiscore', 'indiscorep', 'rapport1'); break;
case 2: $perms = array('indiscore2', 'indiscore2p', 'rapport2'); break;
case 3: $perms = array('indiscore3', 'indiscore3p', 'rapport3'); break;
}
foreach($perms as $item){
if ( $this->checkPerm($item) ){