fix(Profil fotoStatus): changes how fotoStatus is evaluated for different views

This commit is contained in:
SimonGschnell
2025-07-11 11:10:35 +02:00
parent 75a93523e0
commit 28e42163a1
8 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -34,6 +34,7 @@ class ProfilLib{
$res->data = $this->studentProfil();
$res->data->pid = getAuthPersonId();
}
$res->data->fotoStatus=$this->isFotoAkzeptiert(getAuthPersonId());
}
// UID is availabe when accessing Profil/View/:uid
else {
@@ -53,7 +54,7 @@ class ProfilLib{
$res->data = $this->viewStudentProfil($uid);
}
}
$res->data->fotoStatus=$this->isFotoAkzeptiert(getAuthPersonId());
return success($res);
}