issue #0001518 : Ouverture sur pctMin

This commit is contained in:
Michael RICOIS 2013-03-27 14:45:30 +00:00
parent 23dee7dd8f
commit cef54af78d

View File

@ -2305,12 +2305,8 @@ class Interne extends WsScore
{
$this->authenticate();
if ( empty($pctMin) ) { $pctMin = 33; }
if ( !in_array($pctMin, array(33, 40, 50)) ) {
if ( $this->tabInfoUser['edition']!=1 || $this->tabInfoUser['idClient']!=1 ) {
if ( !in_array($pctMin, array(33, 40, 50)) && $this->tabInfoUser['idClient']!=1 ) {
$pctMin = 33;
}
}
if ( empty($nbNiveaux) ) { $nbNiveaux = 10; }