mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-26 00:27:32 +02:00
Correction de bugs concernant les classes et écoles
This commit is contained in:
@ -83,7 +83,7 @@ class MyAccount
|
||||
$keys = ["email", "surname", "first_name", "birth_date", "gender", "address", "postal_code", "city", "country", "phone_number",
|
||||
"school", "class", "responsible_name", "responsible_phone", "responsible_email", "description"];
|
||||
|
||||
if ($this->user->getRole() != Role::PARTICIPANT)
|
||||
if ($this->user->getRole() == Role::PARTICIPANT)
|
||||
$this->class = SchoolClass::fromName(strtoupper($this->class));
|
||||
else
|
||||
$this->class = SchoolClass::ADULT;
|
||||
|
Reference in New Issue
Block a user