[notes] display bulletin when we are parents
This commit is contained in:
parent
3f328d55a6
commit
2fb6059eeb
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue