add debug

This commit is contained in:
mckmonster 2024-09-04 16:21:17 +02:00
parent 84c2e7a3ad
commit c730cb5cbf

View file

@ -71,7 +71,7 @@ class Eleve {
public function isParent($username) { public function isParent($username) {
// echo "<p>username :".$username."</p>"; // echo "<p>username :".$username."</p>";
foreach ($this->parents as $parent) { foreach ($this->parents as $parent) {
// echo "<p>parent :".var_dump($parent)."</p>"; echo "<p>parent :".$parent->getUserId()."</p>";
if ($parent->getUserId() == $username) { if ($parent->getUserId() == $username) {
return true; return true;
} }