Suppression vérification accessWS sur idClient = 1
This commit is contained in:
parent
00a71e2c70
commit
1314c73fca
@ -642,7 +642,7 @@ class WsScore
|
||||
/**
|
||||
* Acces WS, block access to other apps
|
||||
*/
|
||||
if ($result->accesWS==1) {
|
||||
if ($result->accesWS==1 && $result->idClient!=1) {
|
||||
|
||||
// Webservice user don't need access to others apps
|
||||
if ( in_array($ipConnexion, $this->listApplicationIp) && $tabRep['idClient']!=1 ) {
|
||||
@ -658,7 +658,8 @@ class WsScore
|
||||
$wsClients[$params['idClient']] = $section;
|
||||
}
|
||||
}
|
||||
if ( array_key_exists($this->tabInfoUser['idClient'], $wsClients) && ( $this->serviceClient == false
|
||||
if ( array_key_exists($this->tabInfoUser['idClient'], $wsClients)
|
||||
&& ( $this->serviceClient == false
|
||||
|| strtolower($this->serviceClientName)!=$wsClients[$this->tabInfoUser['idClient']] ) ){
|
||||
return '0901';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user