chore: refine regex to determine user role from crm attribute
This commit is contained in:
1 parent
feea4592c5
commit
bc192966cc
1 file changed
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user