chore: refine regex to determine user role from crm attribute

This commit is contained in:
Björn Fromme
2024-02-28 10:50:40 +01:00
parent feea4592c5
commit bc192966cc
+1 -1
View File
@@ -153,7 +153,7 @@ class ResponseParser
;
$attributes[] = $attribute;
if (1 === preg_match('/Hausleitung ([A-Z0-9]+)/', $attributeLabel, $matches) && true === $attributeSelected) {
if (1 === preg_match('/^Hausleitung ([A-Z0-9]+)$/', $attributeLabel, $matches) && true === $attributeSelected) {
$isHouseManager = true;
$hotelCode = $matches[1];
}