Security
This commit is contained in:
parent
74131f0c15
commit
8726ae5f16
@ -1124,10 +1124,10 @@ 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;
|
||||
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) ){
|
||||
@ -1137,7 +1137,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__);
|
||||
|
@ -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__);
|
||||
|
@ -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) ){
|
||||
|
Loading…
Reference in New Issue
Block a user