mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
fix(Profil fotoStatus): changes how fotoStatus is evaluated for different views
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user