Created
April 9, 2020 12:05
-
-
Save edavydova/2c35892013c4ac2e2704a2722e643a30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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