feat: groups price calculator admin crud, booking/offer flow and api
This commit is contained in:
@@ -16,6 +16,8 @@ class CrmAttributesResponseParser
|
||||
private const BPN_CRM_ID_ADMIN = 1292;
|
||||
private const BPN_CRM_ID_MANAGER = 1293;
|
||||
private const BPN_CRM_ID_TEAMER = 1070;
|
||||
private const BPN_CRM_ID_GROUPS_MANAGER = 1477;
|
||||
private const BPN_CRM_ID_GROUPS_ADMIN = 1478;
|
||||
private const BPN_DEFAULT_HOTEL_CODE = 'SSL';
|
||||
|
||||
public function parse(Crawler $result): CrmAttributes
|
||||
@@ -57,6 +59,12 @@ class CrmAttributesResponseParser
|
||||
if (self::BPN_CRM_ID_TEAMER === $attribute->id && true === $attribute->selected) {
|
||||
$roles[] = 'ROLE_TEAMER';
|
||||
}
|
||||
if (self::BPN_CRM_ID_GROUPS_MANAGER === $attribute->id && true === $attribute->selected) {
|
||||
$roles[] = 'ROLE_GROUPS_MANAGER';
|
||||
}
|
||||
if (self::BPN_CRM_ID_GROUPS_ADMIN === $attribute->id && true === $attribute->selected) {
|
||||
$roles[] = 'ROLE_GROUPS_ADMIN';
|
||||
}
|
||||
|
||||
$attributes[] = $attribute;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user