[notes] display bulletin when we are parents

This commit is contained in:
mckmonster 2024-09-11 09:05:48 +02:00
parent 3f328d55a6
commit 2fb6059eeb
2 changed files with 1 additions and 3 deletions

View file

@ -60,7 +60,7 @@ class EleveManager {
$all = $this->getAll();
foreach ($all as $eleve) {
// echo "<p>".var_dump($eleve)."</p>";
if ($eleve->getUserId() == $username)
if ($eleve->getUserId() == $username || $eleve->isParent($username))
return $eleve;
}
}

View file

@ -39,8 +39,6 @@ class NoteManager {
public function viewBulletins() {
$eleveManager = $this->wiki->services->get(EleveManager::class);
// echo "<p>".$username."</p>";
include 'tools/meeo/libs/bulletin/Bulletin.lib.php';
$loggedUser = $this->authController->getLoggedUser();