Skip to content
Code-Schnipsel Gruppen Projekte
Commit cefda28d erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

refactor: read company flag in user from multiple attributes

Übergeordneter 5b4b4d22
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -101,7 +101,7 @@ public function __construct(array $attributes)
}
$this->id = $attributes['id'];
$this->isCompany = (bool)$attributes['isCompany'];
$this->isCompany = !empty($attributes['isCompany']) || !empty($attributes['company']);
$this->isNetto = null;
$this->lang = $attributes['lang'];
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren