Skip to content

Instantly share code, notes, and snippets.

@edavydova
Created April 9, 2020 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edavydova/2c35892013c4ac2e2704a2722e643a30 to your computer and use it in GitHub Desktop.
Save edavydova/2c35892013c4ac2e2704a2722e643a30 to your computer and use it in GitHub Desktop.
diff --git a/app/functions/fn.cms.php b/app/functions/fn.cms.php
index 0be84e15b2..1f47dc98f9 100644
--- a/app/functions/fn.cms.php
+++ b/app/functions/fn.cms.php
@@ -211,7 +211,7 @@ function fn_get_pages($params = array(), $items_per_page = 0, $lang_code = CART_
? (array) $params['company_id']
: [];
- if ($storefront->getCompanyIds()) {
+ if (fn_allowed_for('MULTIVENDOR') && $storefront->getCompanyIds()) {
if ($params['company_id']) {
$params['company_id'] = array_intersect($storefront->getCompanyIds(), $params['company_id']);
} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment