Skip to content

Commit

Permalink
Correction d'un bug majeur
Browse files Browse the repository at this point in the history
Correction d'un bug majeur sur la vérifications des droits : lors d'une recherche par permissions, la fonction droits() renvoyait toujours true.
  • Loading branch information
Pierre Granger committed Oct 22, 2020
1 parent d255049 commit 91754eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ApidaeMembres.php
Expand Up @@ -313,7 +313,7 @@ public function droits($utilisateurApidae,$droits) {
$usr = $this->getUserById($utilisateurApidae['id']) ;
foreach ( $valeurs as $p )
{
if ( ! in_array($p,$valeurs) )
if ( ! in_array($p,$usr['permissions']) )
return false ;
}
}
Expand All @@ -323,4 +323,4 @@ public function droits($utilisateurApidae,$droits) {

}

}
}

0 comments on commit 91754eb

Please sign in to comment.