chore: refine regex to determine user role from crm attribute
This commit is contained in:
@@ -153,7 +153,7 @@ class ResponseParser
|
|||||||
;
|
;
|
||||||
$attributes[] = $attribute;
|
$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;
|
$isHouseManager = true;
|
||||||
$hotelCode = $matches[1];
|
$hotelCode = $matches[1];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user