diff --git a/vendor/magento/module-catalog-permissions/Model/VerifyQuoteItemPermissionAfterGroupChange.php b/vendor/magento/module-catalog-permissions/Model/VerifyQuoteItemPermissionAfterGroupChange.php
index 8aca8803ab0f..209f8e9f7243 100644
--- a/vendor/magento/module-catalog-permissions/Model/VerifyQuoteItemPermissionAfterGroupChange.php
+++ b/vendor/magento/module-catalog-permissions/Model/VerifyQuoteItemPermissionAfterGroupChange.php
@@ -56,7 +56,7 @@ public function __construct(
     public function verify(Quote $quote, Customer $customer)
     {
         $storeId = $quote->getStoreId();
-        $customerGroupId = $customer->getGroupId();
+        $customerGroupId = (int) $customer->getGroupId();
         $canCustomerAddToCart = $this->isConfigSettingsCanAddToCart($customerGroupId, $storeId);
 
         if ($this->canCheckoutGeneralConfigPermissions($customerGroupId, $storeId) &&
